I have a form full of Optionboxes...
All the OptionBoxes are with two of them together...
So I have for example:
Dog or Cat
Sheep or Cow
Fish or Bird
I want to write a function to return a 1 or a 0 to an integer...
VB Code:
Public Sub OneZero(One As Boolean, Zero As Boolean, intName As String) If One = True Then Name = 1 ElseIf Zero = True Then Name = 0 End If End Sub
I call this functions...
VB Code:
call OneZero(optDog, optCat, "intDogCat") call OneZero(optCow, optSheep, "intSheepCow") call OneZero(optFish, optBird, "intFishBird")
Problem now is I want the 1 or 0 into my intName instead of into Name...help!
