>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.