|
-
Feb 22nd, 2010, 02:39 PM
#1
Thread Starter
New Member
compare variables content to another variable name
Ok i am not sure if i am making any sence and if what i am about to ask is possible but here it goes.
Lets assume that we have 5 variables n1, n2, n3, n4, n5 = 0 (boolean) and two more variables f1 = 2 and f2 = 4 (integer). Is it possible to somehow compare those numbers (2, 4) with the names n1, n2, n3, n4, n5 and in the cases that the number matches the number of the variables name to turn it to 1?
the result should be n1 = 0, n2 = 1, n3 = 0, n4 = 1, n5 = 0 ?
As you probable figured out i am not excactly an expert in vb.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|