Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive call in click method doesn't work
Message
From
09/04/2006 20:56:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/04/2006 14:59:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01111703
Message ID:
01111805
Views:
15
>I got this to work without a recursive call. First I set focus to the button,then I keyboard ENTER. (Keyboarding leftmouse didn't work - don't know why)

Probably because MessageBox() isn't a VFP window, it's a Windows service. You'd need some API call to send it anything.

But then, you don't need kludges here. It's much simpler:

>>
>>do form forms\sotpkbxd with curbatchsos.csono, 'PREPARE_BATCH',thisform.erpkeylookupBatchNo.Erptxtgen1.value
>>
*-- instead of 
*>>if messagebox('Skip to next Sales Order?',4+32,'Label System') = 6
*-- do this
>>do while messagebox('Skip to next Sales Order?',4+32,'Label System') = 6
>>	skip in curbatchsos
>>	if eof('curbatchsos')
>>		messagebox('No more Sales Orders to Process',0,'Label System')
            exit
>>	endif
EndDo
*>>endif
>>thisform.Refresh()
>>

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform