Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Logical field from Oracle
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00699803
Message ID:
00700137
Views:
15
>How do I create the equivalent of a logical field in Oracle, which becomes a VFP logical field when I do a SQLEXEC("select *...") ?

The best you can do is a 1 digit numeric that accepts 0 or 1 values. A VFP checkbox will treat a 0 as false and 1 as true. As for SPT, retrieve the data into a temp cursor, then issue a second SQL on the cursor --
IF SQLEXEC(nHandle, 'SELECT * FROM ORACLE_TABLE', 'crsTemp') > 0
   SELECT (field1=1) field1 FROM crsTemp INTO CURSOR crsFinal
ENDIF
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform