General information
Category:
Coding, syntax & commands
>>to check for a duplicate code, i tried using this.setfocus in a valid method, but it doesn't seem to work.
>>
>>if !tableupdate()
>> =messgebox('Duplicate code. Please reenter')
>> this.setfocus()
>>endif
>>
>>is there a better solution?
>\
>Have you tried RETURN .F.?
actually return 0 is much better (IMHO) as you will not get any additional error msg from fox
also note that you can use return with other values e.g.
return -1 will move the focus to the control before the current (in the Zorder)
Arnon
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only