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]

 

Author Re: Fields array
Glenn

2005-11-09, 9:23 am

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

rb

2005-11-09, 11:23 am

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
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com