Results 1 to 11 of 11

Thread: Simulating pointers in VB

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Simulating pointers in VB

    Is there any way to simulate or mimic a pointer like variable in VB?

    Like in C there can be a pointer to some object, like a structure or an array for example, which in C could look like this:

    Code:
    typedef struct bal
    {
      float balance; 
      char name[80];  
    } person;
    
    void someFunction()
    { 
       '
       '
       bal *p;          // Define a pointer to the bal structure
       p = &person;  // Make p equal the address of the bal structure
       '
       '
       p->name = "James";    
       '
       '
    }
    What I need is some way to do the same thing or close to the same thing
    Last edited by jmsrickland; Dec 28th, 2014 at 04:26 PM.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

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