home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,671 of 9,834   
   Ike to liz@paradoxcommunity.com   
   Re: Frustrated with data entry people   
   29 Jun 07 11:17:25   
   
   From: spamminator@spamminator.com   
      
   On Thu, 28 Jun 2007 16:57:23 -0600, Liz McGuire   
    wrote:   
      
   >Ike wrote:   
   >>   
   >> They are all good ideas. My preferrence would be to strip the   
   >> forbidden characters before they are accepted by Paradox.   
   >   
   >The changeValue event will do that, as long as you don't call doDefault   
   >first.   
   >   
   >> Though I   
   >> have quite a bit of programming experience, mostly scripting, I have   
   >> found OPAL to be quite obtuse. I would love to learn, but I have yet   
   >> to find a book teaching the beginner how to program in OPAL.   
   >> Suggestions? Thank you.   
   >   
   >In the changeValue event:   
   >   
   >var   
   >   stNewValue String   
   >   arBreak Array[] String   
   >   liCounter longInt   
   >   stBadChars String   
   >endVar   
   >   
   >stBadChars = "\n\r\t" ;// line feed, carriage return, tab   
   >                       ;// add additional characters as desired   
   >   
   >stNewValue = string(eventInfo.newValue())   
   >   
   >stNewValue.breakApart(arBreak,stBadChars)   
   >   
   >stNewValue = arBreak[1]   
   >if arBreak.size() > 1 then   
   >   for liCounter from 2 to arBreak.size()   
   >     stNewValue = stNewValue + " " + arBreak[liCounter]   
   >   endFor   
   >endIf   
   >   
   >eventInfo.setNewValue(stNewValue)   
   >   
   >...the End.   
   >   
   >Liz   
      
   Liz, you have gone far beyond what I would expect and I sincerely   
   appreciate it. Your assumption about stripping out CRLF and Tabs is   
   correct. Your code is straight forward and I understand what each line   
   is doing.   
      
   But, my problem is when I try to read the help tutorial, I can't even   
   find WHERE to put your code, or if it gets attached to an object, etc.   
   In other words, it is like trying to learn to drive a car, and the   
   instructions have omitted how to first shift into gear. I have always   
   learned by example. But the Paradox tutorial assumes too much, IMO,   
   and does not begin with the basics. I am sure I could learn how to   
   program in OPAL if I could just get over that first hump. I know there   
   are many things I would like to be able to do in OPAL. I have searched   
   for some kind of tutorial book, but have never found anything useful.   
      
   I certainly do not expect someone from this forum to teach me. What I   
   really need is a reference other than Paradox's help files.   
      
   Thank you again,   
   -Ike   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca