Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a FXP
Message
From
04/01/2018 12:11:41
 
 
To
04/01/2018 09:40:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01656909
Message ID:
01656953
Views:
41
>
>After looking at your example it has became clear that the issue is that the object is still associated with the FXP. Until the object is released, the FXP can not be deleted.
>I have instituted a garbage collection to remove any unused FXP files from the Temp folder (I marker each file name with a prefix to identify.)
>This All about preventing clutter and blot.
>
>Personally, I am looking for a solution that does involve writing ANY thing to disk before processing. The ExecScript does not seem to provide the solution; returning a NULL on a CreateObject, when the object was created.
>
>Well, the search continues. I have too much time on my hands.

If your object is completely transient, and live only on the EXECSCRIPT() scope, something like this?
LOCAL SourceCode AS String

m.Section = "XYZ"

TEXT TO m.SourceCode NOSHOW TEXTMERGE
LPARAMETERS Parm1 AS Number, Parm2 AS Number
LOCAL Instance AS Object

m.Instance = CREATEOBJECT("<<m.Section>>")

RETURN m.Instance.Operation(m.Parm1, m.Parm2)

DEFINE CLASS <<m.Section>> AS Custom
	FUNCTION Operation (Op1 AS Number, Op2 AS Number)
		RETURN m.Op1 * m.Op2
	ENDFUNC
ENDDEFINE
ENDTEXT

? EXECSCRIPT(m.SourceCode, 3, 5)
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform