Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom form builder causes C0000005
Message
From
26/05/2006 10:10:28
 
 
To
24/05/2006 18:19:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01124403
Message ID:
01125264
Views:
21
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform