Does VB6 have a function like c's union function 
Author Message
 Does VB6 have a function like c's union function

Hi,

I was wondering if vb had an easy and efficient way to create a union
between variables.

Example:
dim testarray(1 to 20) as integer

for x% = 1 to 20
    testarray(x%) = x%
next

ok so now i have an array called testarray. Is it possible to somehow give
the testarray friendly names for later use without having to add something
like this: number1 = testarray(1) , number2 = testarray(2) etc..

I want to somehow create a link at the loading of the program so that when
my array values change so does the friendly name. In effect they would be
linked so if the array value changes then so does the friendly name. Just as
can be done in C using the union function.

thanx,
Smac



Wed, 27 Nov 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Does vb6 have a c like union function

2. Getting the function's name during runtime while running in the scope of the function

3. One of two functions doesn't function on Windows 95 (i does on Windows NT)

4. Is something like the union function (c++) also in VB available

5. Student having some problems with friend overload functions

6. Student having some problems with friend overload functions

7. Overloading a function - can it be done?

8. HELP - Doing a Union

9. HELP - Doing a Union Query in VB3.0

10. Can A function be done within a subroutine

11. Wait Until Function is done ?

12. Is there any function doing URLEncoding?

 

 
Powered by phpBB® Forum Software