Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need 'Wile E. Coyote, Super Genius'...
Message
From
21/01/2001 13:38:23
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/01/2001 01:41:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00466285
Message ID:
00466372
Views:
19
>Thanks Al and Markus ...
>
>That's exactly the answer I've been looking for!
>

A little addendum here. While you can call a routine this way, you can't call a function, i.e. there's no way to have

lResult=funcname() in blabla.prg

One way would be to keep your functions (still keeping names as you like) in one .prg file and then in your cuckoo's egg program give a
set procedure to blabla.prg
lResult=funcname()
Or alternatively you can Set Procedure to OriginalButRenamed.spx or something like that, depending on what you need in each particular situation. One thing to keep in mind is that you don't know if the called program needs some particular procedure file to be open while it runs, so you may need to save the set('procedure') to a variable, then set it to your file plus the old set, then on exit reset it to what it originally was. Placing your file to the beginning of the list should make Fox to find functions in it before finding them in any other file in the list.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform