Would there ever be a case where element[x,18] > 0 and element[x,2] <> 'I'?
Or is the test on element[x,2] a "safety check"?
Paul H. Tarver Tarver Program Consultants, Inc. Email: paul@tpcqpc.com
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Alan Bourke Sent: Thursday, July 27, 2017 9:04 AM To: profoxtech@leafe.com Subject: Re: Determining VFP field to be AutoInc or not
As I understand it you need to check if a field is autoinc or not.
You could use afields(), and in the resulting array if element [x, 2] is "I" and element [x, 18] > 0 then you can safely say that field is autoinc.
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
On Thu, 27 Jul 2017, at 11:49 AM, mbsoftwaresolutions@mbsoftwaresolutions.com wrote:
VFP9SP2
I'm retrofitting old code and need to identify if the field's IID field in AutoInc or not. Looks like AFIELDS() is my friend here for array elements 17 and 18. Just wondered if anyone else had a better way?
Thanks. --Mike
[excessive quoting removed by server]