Hello, I wanted to know whether its possible in VB.Net to use a string as an object name.
Lemme describe my problem. I have four radio buttons - p1,p2,p3,p4. Now i want to check whether these buttons are selected or not, for this thing would have to use for if conditions.
I want to know if its possible to use a loop and use "p" + i as the button name. This is possible in flash action script but I dont know whether its possible in VB.Net.
vinaylucky2
0
Newbie Poster
Recommended Answers
Jump to PostYou are looking for cobj()
cobj("p" & i)
All 3 Replies
Gé48
1
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
adam_k
239
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.