Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ExecScript + ThisForm
Message
 
À
09/06/2003 02:42:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00797642
Message ID:
00797922
Vues:
23
Hi Cetin,

If a program needs to refer to thisform then I send it thisform as a parameter.
But as per Execscript why do you filetostr() and execscript.
Do relatorio with thisform
Is a more direct and reliable way and faster than Execscript (doesn't recompile).
It gets it as a toForm parameter and report could also use toForm.


I use ExecScript because it is a particular routine and I use it in just one client.

Le me explain better...

I have an application that is used for some companies... And one of these companies ask me a little change, but I don't like to change my original app... So, I do something like that:
If File("SPECIALROUTINE.PRG")
   ExecScript(FileToStr("SPECIALROUTINE.PRG"))
Else
   Report Form MyReport To Printer NoConsole
EndIf
and then, in this specific client, I put some code in SPECIALROUTINE.PRG... ;-)

[]s!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform