Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Same old problem again
Message
De
15/12/2005 09:52:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01078218
Message ID:
01078236
Vues:
33
Thank you for supporting multiple returns are better:)
Cetin

>Yes, this would work as well. But with the help of my colleague we found the culprit. As always, it was just me, who put exit in one loop at the wrong place <g>
>
>
>for each loControl in thisform.controls
>		if inlist(proper(m.loControl.baseclass),'Combobox','Textbox','Editbox')
>			if not empty(m.loControl.value)
>				llReturn = .t.
>				exit
>			endif		
>		endif
>	next
>
>I have the Exit originally after the endif. No wonder it didn't work <g>
>
>>Shouldn't it be
thisform.activecontrol.SetFocus()
?
>>
>>>
>>>I have several controls on my form including edtNotes. All controls are unbound. In QueryUnload method I have:
>>>
>>>
>>>LOCAL llReturn
>>>thisform.lIsClosing = .t.
>>>
>>>if type('THISFORM.ActiveControl') = 'O' and not ;
>>>		isnull(thisform.activecontrol) and PEMSTATUS(thisform.activecontrol,'valid',5) ;
>>>		and inlist(lower(thisform.activecontrol.baseclass),'textbox','editbox')
>>>	thisform.activecontrol.valid()
>>>endif
>>>
>>>llReturn = dodefault()
>>>
>>>thisform.lIsClosing = .f.
>>>
>>>RETURN m.llReturn
>>>
>>>Yet when I type in edtNotes and then click on close button in the upper right corner of the form, the value just goes away. What can I do to prevent this behavior?
>>>
>>>Thanks in advance.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform