Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect error NUMERIC OVERFLOW
Message
From
23/09/2005 10:13:42
 
 
To
23/09/2005 08:58:23
Gerardo Ruggiero
Equipe Informatica
Rome, Italy
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01052345
Message ID:
01052375
Views:
10
>Hye,
>
>how to detect error numeric overflow?
>example:
>
>create table xxx(a n(3))
>use xxx
>repl a with 1000
>* here vfp produce error...
>
>thank
>
>gerry

3 modi:
- Check
- Buffering
- Transaction

Con Check:
CREATE CURSOR TESTERROR ( A N(3) CHECK BETWEEN(A,-99,999))
APPEND BLANK 
REPLACE A WITH 33

ON ERROR ? MESSAGE()
REPLACE A WITH -100

? A
PS E' incredibile come si sono divertiti quelli del team:
prima buttano il tappo dentro la bottiglia,
e poi ti avvertono che il tappo è stato perso.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform