FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How To Test Whether Field Name Exist
Posts: 175
Joined: Tue Nov 10, 2009 10:56 AM
How To Test Whether Field Name Exist
Posted: Sat Apr 13, 2013 09:47 AM

Hi

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

Thanks

Regards
ACWoo
FWH1303+Harbour+bcc582

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How To Test Whether Field Name Exist
Posted: Sat Apr 13, 2013 10:10 AM

Try this:

FieldPos( "fieldname" ) != 0

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 175
Joined: Tue Nov 10, 2009 10:56 AM
Re: How To Test Whether Field Name Exist
Posted: Sun Apr 14, 2013 02:41 AM

Thanks Antonio

It works.

Regards
ACWoo

Continue the discussion