Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing form parameters to a report
Message
From
09/05/2003 04:01:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00786644
Message ID:
00786650
Views:
17
>Hi,
>
>I am having a problem with a report that I am producing. What I am trying to do is pass a value from a text box so that it can be printed on the header of the report. My report produces records between 2 given dates. What I would like to do is to show the 2 dates in the report header (Just print them).
>
>Many thanks

Neil,
'report' is a command not a routine. Therefore any variable (including locals) in the scope of routine that's invoking 'report' are readily available to report. IOW :
* Form.somemethod
local lcText, ldStart, ldEnd
lcText = 'hello'
* Form has txtDateStart and txtDateEnd
* This routine could access them
ldStart = thisform.txtDateStart.Value
ldEnd = thisform.txtDateEnd.Value
report form ....

* Report has access to all variables that SomeMethod has access
* Header title field could have an expression like
dtoc(ldStart)+' - '+dtoc(ldEnd)
*Or
dtoc(thisform.txtDateStart.Value)+' - '+dtoc(thisform.txtDateEnd.Value)
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform