On Mar 21, 2007, at 21:56 UTC, Markus Winter wrote:

> Hi all,
> 
> I¹m trying to save the state of a radio button array from the action
> event of the ³ok² button in the same window.
> 
> in the radio button array I can have code like
> 
>     me.index
> 
> but if I try to reference it from the pushbutton like this
> 
>     select case radiobutton().index
>     ...
> 
> I get a ³this method or property does not exist²
> 
> Why???

Well, because it doesn't; "radiobutton()" is nonsense code.  It sounds
like you want to select a case based on which radio button is selected.
That would be this:

  if radiobutton(0).Value then
     ...
  elseif radiobutton(1).Value then
     ...

and so on.  Of course, "radiobutton" is the name of a class, so your
actual radio button control must be named something else.

Best,
- Joe

P.S. You could do this with a Select Case if you really want to, I
suppose, but it'd be an odd one:

  select case True
  case is radiobutton(0).Value
    ...
  case is radiobutton(1).Value
    ...
  end select

Here, you're switching based on the value of "True" by comparing it to
several object properties.  Backwards and weird, but ought to work.

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to