General information
Category:
Coding, syntax & commands
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only