Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need 'Wile E. Coyote, Super Genius'...
Message
De
21/01/2001 01:41:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00466285
Message ID:
00466325
Vues:
12
Thanks Al and Markus ...

That's exactly the answer I've been looking for!

- John

>Hi John
>
>I'm not right sure, I understand your question, the whole thing looks
>like a mixture between FPW and VFP. But I'll give it a try anyway. :-)
>
>As long as you wouldn't need a value returned you can do exactly this.
>
>DO ProgramName1 | ProcedureName
> [IN ProgramName2]
> [WITH ParameterList]
>
>With the IN clause you can force FPW/VFP to search the procedure in the specified file. Be aware this doesn't work for functions.
>
>May be you have overlooked this, may as well be I'm far of the target.
>
>Regards
>Markus
>
>
>>Hey UTers ...
>>So here's my dilemma. I've got a form class VALID call that calls a routine in the calling program in a FXP. I don't have source and it's a licensing thing, not a matter of Re-Foxing.
>>
>>I already know a trick where I can insert a program between the calling program and the Form Class. I can do this because the program where the VALID routine resides still calls an intermediate SPX, which in turn calls the Form Class (don't ask, it ain't my code). What I CAN do is RENAME the SPX to another file name. I can then write my own program and use the original name of the FXP and insert it between the two programs. I can then call the original FXP, which has the new name. This new program contains a function I wrote with the SAME NAME as the function the VALID event (LostFocus, actually) calls. Because MY function now sits closer to the calling object, mine triggers instead of the original function sitting up in the main program. This works fine ...
>>
>>However ...
>>
>>Is there a way ... for my routine to then call the routine OF THE SAME NAME further up the calling hierarchy (sorta like doing a program version of DODEFAULT)? Or can I somehow indicate which version of the program I want? I think if I call a function with the same name as the program I'm in I will go into a recursive loop, right?
>>
>>Example: If my program resides in JOHNPRG1 and is called 'ValidField()' and another function sits up the hierarchy in a program called 'CallingProgram.PRG', can I call 'DO CallingProgram.ValidField()'? I don't think this will work.
>>
>>Anyone got any ideas?
>>
>>TIA!
-- John Kiernan
"Maybe Amelia Earhart was just stealing the plane".
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform