|
Home > Archive > Programming with dBASE > November 2005 > Re: Fields array
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Robert Bravery wrote:
> Hi all,
>
> How can I find the column number, or the array index of a field if given the
> fields name
> eg
> if q.rowset.fields[4].fieldname = 'myfields'
> How do I return the number 4 in the array, bacuase I know the name of
> 'myfields', but not the column or array number
>
> Thanks
> Robert
>
>
>
I would loop through the fields until you find the name in question.
Perhaps a function that would return the number.
This reply is of course in the other newsgroup, but can't help it!
Glenn
| |
|
| Hi,
Thanks Glen. I was hoping not to loop thru the fields.
Robert
"Glenn" <gfausel@aol.com> wrote in message
news:zaiusNT5FHA.1244@news-server...
> Robert Bravery wrote:
the[color=darkred]
> I would loop through the fields until you find the name in question.
> Perhaps a function that would return the number.
>
> This reply is of course in the other newsgroup, but can't help it!
>
> Glenn
>
|
|
|
|
|