Results 1 to 9 of 9

Thread: Indirect referencing (Resolved)

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Indirect referencing (Resolved)

    Hi,

    In some DOS languages we had a facility known as "Macro Substitution", whereby you could directly access the object named in a variable. e.g.

    strVar contained the string "File1"

    Assuming the Macro Substitution reference is "&" you could then access File1 by refering to it as

    &strVar

    I know that you can access controls in VB.NET in a similar way by using Collections, but can you do something similar with variables?
    Last edited by taxes; Jul 13th, 2004 at 07:36 PM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width