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: [email protected] 



-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Alan
Bourke
Sent: Thursday, July 27, 2017 9:04 AM
To: [email protected]
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,
[email protected] 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]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to