How To Test Whether Field Name Exist

How To Test Whether Field Name Exist

Postby acwoo1 » Sat Apr 13, 2013 9:47 am

Hi

Example
How do I test whether the field name "amount" exist in the dbf "Inv".

Thanks

Regards
ACWoo
FWH1303+Harbour+bcc582
acwoo1
 
Posts: 161
Joined: Tue Nov 10, 2009 10:56 am

Re: How To Test Whether Field Name Exist

Postby Antonio Linares » Sat Apr 13, 2013 10:10 am

Try this:

FieldPos( "fieldname" ) != 0
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41450
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How To Test Whether Field Name Exist

Postby acwoo1 » Sun Apr 14, 2013 2:41 am

Thanks Antonio

It works.

Regards
ACWoo
acwoo1
 
Posts: 161
Joined: Tue Nov 10, 2009 10:56 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Ari, Google [Bot] and 66 guests