Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement