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,667 of 9,834    |
|    Liz McGuire to Ike    |
|    Re: Frustrated with data entry people    |
|    28 Jun 07 16:57:23    |
      From: liz@paradoxcommunity.com              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              --- 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