|
-
Feb 9th, 2010, 06:01 AM
#1
Thread Starter
New Member
Looping Captions and Option Buttons
Hi,
I am new to programming and am trying to develop a GIS based application. Very simple, I have code to copy text into an attribute table. I have a form which has several option boxes with captions of different attributes, I need to be able to produce a loop code to discover which option buttons value=true and for each of these to store the caption as a string into a predefined string (mytext) seperated by a comma.
So I have 4 optionbuttons (Optionbutton1 - OptionButton4)
This is as far as I have got...
Dim mytext as String
For x = 1 To 4 'x being the number after the optionbox name
If Optionbuttons(x).value = True Then 'this line doesn't work as it wont recognise the control numbers with x as a suffix
(Store caption into mytext with comma at the end)
End If
Optionbox(x).Value = False
I would appreciate any help, as I said I am a beginner and sorry if I am wasting anyones time.
Many Thanks
Craig
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
|