Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a value to a PRG with PARAMETERS
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00583456
Message ID:
00583492
Views:
29
I renamed the variables in the PRG to no avail - I will cut & paste the code here in case I have missed something...

if thisform.pgf_pages.page1.opt_merge.option1.value = 1
lcDestination = 1
else
lcDestination = 2
endif

lcSql = "SELECT * FROM myTable INTO CURSOR temp"

do merge_program with lcSql, lcDestination

Now in the PRG

LPARAMETERS tcSql, tcDest

if tcDest = 1

* destination is WORD

* execute received SQL statement

&tcSql
else
endif

That's the gist
Chris Maiden
Email
Web
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform