Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ExecScript + ThisForm
Message
De
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:
00797883
Vues:
12
>Hi!
>
>I have a form with one method called Impressao.
>In this method, I have one line like this:
>
>ExecScript(FileToStr("Relatorio.PRG"))
>
>The instruction works fine... The file Relatorio.PRG has something like that:
>
>Report Form MeuRelatorio To Printer NoConsole
>
>It works great too... The problem is, inside MeuRelatorio, I have one field that need read a property from the form. Example:
>
>ThisForm.Title
>
>When VFP runs it, I received a message erro like "ThisForm just be called from a method")!
>
>How to round it?
>
>[]s

Rodolfo,
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.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform