Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't use & macros or Evaluate with more then 255 chara
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00550486
Message ID:
00551628
Views:
31
I just tested EVAL() with cExpression of 16,000 bytes long and it works. VFP 6 SP 5.

>You're right abou EVAL() function. BTW, in VFP 7 help there're no mention about this limit. Anyway the limit for foxpro command is 8,192 characters not 255. Can you post actual value of lstring that gives you an error in &.
>
>>Hi Sergey
>>
>>The Error is "String too long"
>>
>>It's The & Commande and the Evaluate function that are limited if you look at the help file for Evaluate you find this .:
>>
>>EVALUATE(cExpression)
>>cExpression cannot exceed 255 characters
>>
>>For & commande
>>& VarName[.cExpression]
>>& VarName
>>The macro should not exceed the maximum statement length permitted in Visual FoxPro.
>>
>>Any Idea ?
>>Thanks
>>Benoit
>>
>>
>>>The limit of 255 characters is only applcable to a string literal. The string has limit of 16,777,184 characters. The maximum # of characters per macro substituted line 8,192. As you can see you didn't reach any of those limits. What error do you get?
>>>
>>>
>>>>Hi all
>>>>
>>>>In my app user can build variable with the name of fields in it
>>>>like this
>>>>Nombre de jours = "date()-facture.fdate"
>>>>Escompte ind = "facture.vent * facture.esc + facture.escfix "
>>>>Prix moins esc Ind =" facture.vent - 'Escompte Ind' + 'Nombre de jour' "
>>>>
>>>>Like you see they can build variable with other variable in it.
>>>>I have made a function for the translation of the variable and i put the resulte in a variable call lstring
>>>>
>>>>Ex .:
>>>>'Prix moins esc Ind'
>>>>lstring = " facture.vent - (facture.vent * facture.esc + facture.escfix) + date()-facture.fdate "
>>>>But in many case the limite of 255 characteres is exceed and the & or evaluate won't works
>>>>How can i get the resulte of the lstring variable
>>>>
>>>>Any Tips ?
>>>>
>>>>Benoit
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform