Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WITH object
Message
From
27/11/2019 13:27:45
 
 
To
14/11/2019 08:42:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01671871
Message ID:
01672104
Views:
79
>Is there a way to access the WITH object here without re-typing it?
>
>Something like:
>
WITH xyz.abc
>
>    SomeFunction(thisWith, 1, 2)
>
>ENDWITH
>
>
>
>FUNCTION SomeFunction
>LPARAMETERS toWith, tnRow, tnCol
>
>    ? (toWith == xyz.abc)
>    * Displays .T.
>
Add a property to the object class.
PROPERTY MySelf

FUNCTION MySelf_Access
   RETURN m.This
END
Then
WITH xyz.abc

    SomeFunction(.MySelf, 1, 2)

ENDWITH
Previous
Reply
Map
View

Click here to load this message in the networking platform