Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom function call no longer works(FPW2.6 to VFP5.0)
Message
 
 
To
11/01/1999 16:05:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174827
Message ID:
00174838
Views:
22
Melissa,

VFP5 has a limit of 27 parameters by my count you are one over. And you win the prize of the most parameters I've ever seen send to a function in the 23 years I've been programming. *s*

Also you may find VFP5 failing to compile lines because of syntax errors that earlier version of FoxPro didn't catch.

>I have a function that I added the param "ln_incrcost" to in FPW 2.6 and the function compiled and ran fine. The system that called that function has now been converted to VFP5.0 and when I add the "ln_incrcost" param and compile, I get a "Syntax error" on the line that calls the function. The call compiles fine if I remove the add'l param. I have checked and doublechecked the # of parameters the function expects and what is being sent as well as the order the params are sent in. Is there something else I should be checking for? Is there a parameter limit in VFP? Any ideas? Below are the two function calls:
>FPW 2.6
> ll_cont = i_updtrn(lc_ttype, lc_item, lc_loctid, ;
> ln_trnqty, ln_cnvrate, ;
> ld_trandat, la_tier[4], lc_lotno, lc_orgno, ;
> lc_orgtyp, lc_tranno, lc_docno, ln_lineno, ;
> lc_store, lc_bin, lc_ref, lc_umeas, la_tier[1], ;
> lc_serial, ll_addqty, ln_price, ln_disc, ;
> ln_taxrate, ln_incrcost)
>
>VFP 5.0
> ll_cont = i_updtrn(lc_ttype, lc_item, lc_loctid, ;
> ln_trnqty, ln_cnvrate, ;
> ld_trandat, la_tier[4], lc_lotno, lc_orgno, ;
> lc_orgtyp, lc_tranno, lc_docno, ln_lineno, ;
> lc_store, lc_bin, lc_ref, lc_umeas, la_tier[1], ;
> lc_serial, ll_addqty, ln_price, ln_disc, ;
> ln_taxrate, lc_currid, ln_incrcost, ln_exchrat, ln_fprice, ;
> g_extnd(5, la_tier[4], ln_exchrat, 0))
>Thanks in advance for the help everyone.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform