Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to select Visual FoxPro logical field from ASP.NET

Status
Not open for further replies.

megkhp

Programmer
Mar 10, 2003
14
0
0
US
I'm writing an ASP.NET application that connecting to Visual FoxPro database, I want to select a logical field "IsActive" equals to ".T." from the "Customer.dbf", I've tried the following but they don't work:

"SELECT * Customer WHERE IsActive=.T."
"SELECT * Customer WHERE IsActive=TRUE"
"SELECT * Customer WHERE IsActive='TRUE'"

Does anyone know the solution? Thanks!
 
Try:
Code:
SELECT * [red]FROM[/red] Customer WHERE IsActive
A logical value doesn't need an additional comparison, although the first example should work with the [red]FROM[/red] added.

Rick
 
I have to use the following when calling a logical field through ADO.
Code:
SELECT Table.Field FROM Table WHERE LogicalField = 1
Using 1 for True and 0 for false.

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top