Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setfocus not working when an excutable is running

Status
Not open for further replies.

suha

Programmer
Aug 19, 2000
41
0
0
JO
while using setfocus when a command is click it responds and return controls to the setfocus field but when running excutable file it keeps on giving me this message
"cannot call setfocus from within a when,valid,rangehigh or rangelow event
 
suha

If you want to SetFocus back on the Control, in the .Valid() event put:-

IF EMPTY(THIS.Value)
[tab]MESSAGEBOX([.......
[tab]RETURN .F. && or 0
ENDIF

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top