Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom form builder causes C0000005
Message
De
26/05/2006 10:10:28
 
 
À
24/05/2006 18:19:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01124403
Message ID:
01125264
Vues:
16
The actual error was resolved by checking for an empty method before trying to reset it to default. Hugo's tip did speed up the program, and I gave credit for that.


>Hi Jim,
>
>I think you meant to give the stars to Hugo :)
>
>>Hugo,
>>I followed your tip, and I surrounded the section of code that calls ResetToDefault with an If empty() and that took care of it.
>>
>>The FOXOBJECT clause made it quicker.
>>
>>thanks,
>>
>>
>>Procedure ProcessSrchField
>>	Lparameters oCtrl
>>
>>	Strtofile(oCtrl.Class + [:] + oCtrl.Name+Chr(13)+Chr(10),[c:\crap\mylog.txt],1)
>>	Local cSrc, cAlias, cTag
>>	cSrc = oCtrl.ControlSource
>>
>>	cAlias = Getwordnum(cSrc,1,[.])
>>	cTag = Getwordnum(cSrc,2,[.])
>>	oCtrl.icsrchAlias = cAlias
>>	oCtrl.icsrchTag = cTag
>>	cSrc = oCtrl.ReadMethod([GotFocus])
>>	If !Empty(cSrc)
>>		oCtrl.ResetToDefault([GotFocus])
>>	Endif
>>Endproc
>>
>>
>>>Jim,
>>>
>>>Try adding the FOXOBJECT clause to the FOR EACHs to see if that makes a difference
Jim Newsom
IT Director, ICG Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform