Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect error NUMERIC OVERFLOW
Message
From
23/09/2005 13:54:35
 
 
To
23/09/2005 10:30:49
Gerardo Ruggiero
Equipe Informatica
Rome, Italy
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01052345
Message ID:
01052489
Views:
9
>ok per create table o cursor ma se lo devo aprire con use check non lo posso usare...
>
>gerry

se la tabella appartiene ad un .DBC allora puoi definire i check in create table
e USE avrà i check attivi.

Se la tabella è libera,
puoi usare i buffers:
CLEAR
ON ERROR ? MESSAGE()
CREATE TABLE TESTERROR FREE ( A N(3) ) && CHECK BETWEEN(A,-99,999))
addRecord()
REPLACE A WITH -100

? A

* non si può
ALTER TABLE DBF() ALTER COLUMN A SET CHECK BETWEEN(A,-99,999)
addRecord()
REPLACE A WITH -100

? A


addRecord()

* buffering
ON ERROR TABLEREVERT()
=CURSORSETPROP("Buffering",3)
REPLACE A WITH -100

? A


PROCEDURE addRecord
APPEND BLANK 
REPLACE A WITH 33
Previous
Reply
Map
View

Click here to load this message in the networking platform