Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursive call in click method doesn't work
Message
De
09/04/2006 20:56:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/04/2006 14:59:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01111703
Message ID:
01111805
Vues:
14
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform