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!

.T. into 1

Status
Not open for further replies.

RGoldthorpe

Technical User
Aug 10, 2001
83
0
0
GB
Is there a way of scanning through a load of logical parameters and convert .T. into "1" and .F. into "0" or a so I can stick them in to SQL server.

Open to all sugestions if this isn't the right way to go about this problem.

Thanks in Advance

Rachel
 
You would have to add a numeric field and use something like

Code:
update mytable set mynewfield = iif(oldfield = .t.,1,0)

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top