radio buttons
radio buttons
(OP)
I have a option group(3 radio buttons]) as below.
A
B
C
I want to call the method declared before when I select each option. As an example, when I choose option A, method A needs to be called. I want to write a Do Case for this scenario . How can I do this in FoxPro?
Thank you
A
B
C
I want to call the method declared before when I select each option. As an example, when I choose option A, method A needs to be called. I want to write a Do Case for this scenario . How can I do this in FoxPro?
Thank you
RE: radio buttons
And then, from the VFP language, you have DO CASE as in:
CODE
Chriss
RE: radio buttons
Thanks for the reply
How to call a method ?
If I provide only the method name is it fine ?
RE: radio buttons
No, you have to specify the object to which the method belongs. For example, if it is a method of the form, you would call it as THISFORM.Method1. If it is a method of another form, you would call it as oForm.Method1 (where oForm is an object reference to the form.)
If the "method" is in fact a simple procedure or function, rather than an actual method, then you just need its name.
If the method is to return a value, you need to add parentheses, like this:x = oForm.Method1(). You would also need parens if you are passing a parameter (just like when you call a function).
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads
RE: radio buttons
Helps a lot..