Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a value to a PRG with PARAMETERS
Message
From
19/11/2001 11:37:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00583456
Message ID:
00583513
Views:
26
>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,
Error is really in .prg ? Check type there with debugger.

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