Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExecScript + ThisForm
Message
 
To
09/06/2003 02:42:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00797642
Message ID:
00797922
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform