pjohns
22nd July 2003, 14:24
Hello,

I've created a field which uses a report script variable. This field will only be printed if tdsls040.cuno = "customerx"

I also want to print some text at the end of the field. Can I append text to the variable name in the 'Print Expression' box or will I need to create another report field with the same print condition? If I can append what is the correct syntax to use in 'Print Expression'?

Thanks

PJ

gfasbender
22nd July 2003, 14:51
The condition of the report field should be: tdsls040.cuno = "customerx"

and the expression: table.field & " your appended text"

pjohns
22nd July 2003, 15:59
Hi Gfasbender,

Thanks for your quick reply.

I tried what you suggested but it didn't work. I have attached a screen shot for your info. I also tried differing variations of table.field & " your appended text" but still couldn't get it to compile. I was getting errors saying: -

Illegal type combnation: 'double and string'
Fatal Error: Check of Unprototyped function arg

I should point out that my report field is a number. i.e. price

Thanks

PJ

kbartelds
22nd July 2003, 16:27
Hi,

And that is the cause of the error. print expression should be str$(pric004) & "any text".

Regards,
Klaas

gfasbender
22nd July 2003, 16:31
Print expression: str$(pric004) & " custom text"
and a string domain like tcmcs.str20

pjohns
22nd July 2003, 16:59
Hello Gordon & Klaas,

Thank you both for your input everything is now working.

Kind regards

Philip