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,622 of 9,834   
   Craig to All   
   Trapping for non "number"   
   26 Feb 09 06:58:28   
   
   From: craig.futterman@nospam.comcast.net   
      
   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