Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect error NUMERIC OVERFLOW
Message
De
23/09/2005 10:13:42
 
 
À
23/09/2005 08:58:23
Gerardo Ruggiero
Equipe Informatica
Rome, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01052345
Message ID:
01052375
Vues:
11
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform