Variable with String Values?
Probably a stupid question but I can't find an example showing how to do this.
I have some varaibles I've declared myself in Delphi via AddVariable(). Numbers, dates etc are ok but string variable give me errors:
If there isn't a space in the variable content I get: "Undeclared identifier"
or
or if I have a space in the text I get: "Error in expression: ";" expected"
I assume this must be a syntax thing. The memo field I'm using has: [variable_name]. What is the proper way to get my string variable into this field?
Many thanks
Mark
I have some varaibles I've declared myself in Delphi via AddVariable(). Numbers, dates etc are ok but string variable give me errors:
If there isn't a space in the variable content I get: "Undeclared identifier"
or
or if I have a space in the text I get: "Error in expression: ";" expected"
I assume this must be a syntax thing. The memo field I'm using has: [variable_name]. What is the proper way to get my string variable into this field?
Many thanks
Mark
Comments
frxReport1.Variables := QuotedStr(your_string);
another way is to use frxGlobalVariables - they are static and don't require quotes:
frxGlobalVariables := your_string;
Mark
Mark