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 9,623 of 9,834   
   Jim Giner to Craig   
   Re: Trapping for non "number"   
   26 Feb 09 08:52:14   
   
   From: jim.giner@suny.edu   
      
   First - whole numbers do not include ".5".  But since you say you want them   
   to enter either integers (whole numbers) or numbers represented in decimal   
   form (rather than fractional), then just add this check to your changevalue   
   method.   
      
   Might take some work, but can't you use a picture that requires "any number   
   of digits" followed by "." and "any number of digits", making the dot and   
   the second string of digits optional in your pic?  I"m not a master of pics,   
   so I can't even offer up the syntax.   
   "Craig"  wrote in message   
   news:49a683e4$1@pnews.thedbcommunity.com...   
   >I have a field in a table which is set as a number field.   
   > The user can only insert whole numbers such as 1 or a decimal such as .5   
   > (the user can also do 1.5 etc..)   
   > THere are only certain decimals which are allowed and I have a method   
   > which checks that. Not a problem.   
   > I am concerned that the user might try to insert a fraction such as "1/2".   
   > I would like to trap for that PRIOR to the method which checks for the   
   > proper decimals which is triggered in changevalue.   
   > How can I trap for that?   
   >   
   > Thanks in advance,   
   > Craig   
   >   
      
   --- 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