Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WITH object
Message
From
14/11/2019 15:54:47
 
 
To
14/11/2019 15:34:52
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01671871
Message ID:
01671880
Views:
55
>But this also works:
>
>
with xyz.abc
>     SomeFunction()
>endwith
>
>func SomeFunction
>   .width=.width+3
>endwith
>
>Somewhat unexpectedly, though. IOW I found this out by accident :).

Wow. This also works:
WITH _screen
	somefunction()
ENDWITH

FUNCTION somefunction
? .width
? .height
somefunction2()

FUNCTION somefunction2
? .width
? .height
It also works if you define somefunction.prg and somefunction2.prg. Never knew that. Negates the idea that the WITH..ENDWITH is a compile-time facility. Clearly it's run-time.
Previous
Reply
Map
View

Click here to load this message in the networking platform