>I have seen that in most of the code that I have read, Setfocus and Refresh are always followed by (). In my code I have not used the brackets and all works fine. Is it just a standard rule to use the brackes or am I going to run into problems later by writing sloppy code?
>
>Thanks
As you've learned, the parens are usually optional. But, if you need to get a return value from the method you are calling, they are required:
lnValue = THISFORM.MyMethod
Gives you a "property not found" error
lnValue = THISFORM.MyMethod()
Works.
What's more, including the parens in every function call is just good coding practice. Later on, after having written a ton of VFP code and having to maintain it, you'll appreciate the visual clue as to what the code is doing.
Erik Moore
Clientelligence