Home All Groups Group Topic Archive Search About

Iterating thru User-Defined Data Type Property

Author
2 Feb 2006 5:49 PM
Ronin
Public Structure MyDataType
   dim LName as string
   dim FName as string

   'other procedures/methods/property statements

End Structure

please look at the codes above...

is there any way to iterate thru the variables by using

   for... each statement

like for example

  for each variable in MyDataType
  next

Please help.

Thanks in advance.

Author
2 Feb 2006 6:59 PM
Armin Zingler
Show quote Hide quote
"Ronin" <Ro***@discussions.microsoft.com> schrieb
> Public Structure MyDataType
>   dim LName as string
>   dim FName as string
>
>   'other procedures/methods/property statements
>
> End Structure
>
> please look at the codes above...
>
> is there any way to iterate thru the variables by using
>
>   for... each statement
>
> like for example
>
>  for each variable in MyDataType
>  next


http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondiscoveringtypeinformationatruntime.asp


Armin
Author
2 Feb 2006 9:19 PM
Ronin
Thanks boss

Show quoteHide quote
"Armin Zingler" wrote:

> "Ronin" <Ro***@discussions.microsoft.com> schrieb
> > Public Structure MyDataType
> >   dim LName as string
> >   dim FName as string
> >
> >   'other procedures/methods/property statements
> >
> > End Structure
> >
> > please look at the codes above...
> >
> > is there any way to iterate thru the variables by using
> >
> >   for... each statement
> >
> > like for example
> >
> >  for each variable in MyDataType
> >  next
>
>
> http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondiscoveringtypeinformationatruntime.asp
>
>
> Armin
>
>