Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote view logical field problem
Message
From
03/07/2004 18:05:05
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Remote view logical field problem
Miscellaneous
Thread ID:
00920497
Message ID:
00920497
Views:
70
I am trying to create a remote view which selects all fields from a SQL table, plus an extra logical field (not related to any back-end field).

Using native tables, I could use syntax like...

SELECT *, .F. AS MyNewField ;
FROM MySQLTable ;
WHERE MyFilterCondition

but I get an 'incorrect syntax near AS...' ODBC error message. If I use '0 as MyNewField' it defaults to an integer field and if I then try and change the field data-type to logical, I get the error message 'Type conversion required by the DataType property for field "MyField" is invalid' (Error 1543).

There are other bit fields in the backend table which translate fine to logical fields, so how can I add a logical field to my field list, or am I restricted to using 1/0 as an integer?

Many thanks,
Alan
Next
Reply
Map
View

Click here to load this message in the networking platform