Page 1 of 1

Echo Screen

Posted: Fri Nov 11, 2011 4:11 pm
by Greg
I have extended my script and just want to echo to the screen

“Quantity prices available for this $3.00 for 12 or more”

I get the text to the screen at the right time but don’t know the correct syntax for inserts a record amount where in this example $3.00 is

Echo “Quantity prices available for this stock line Staux000->J for staux000->Qtynumber!,”

At the moment the words Staux000->J appears on the screen not $3.00 ( in this example)

Any assistance would be appreciated

Posted: Fri Nov 11, 2011 4:12 pm
by COBS Tech Support
Try this:

Code: Select all

Echo("Quantity prices available for this stock line " + NTrim(Staux000->J) + " for " + NTrim(Staux000->Qtynumber") + "!")


The above, all on one line.

The above script assumes that you've setup Qtynumber as a numeric field. Otherwise you'll most likely get a type mismatch error.