Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Print Directives

Status
Not open for further replies.

LeanClink

Programmer
Nov 26, 2020
10
PH
Is it possible to use format in order to embed print directives dynamically?

For example, I want to parse the following string:

Code:
[indent]HELLO {B}WORLD{/B}{=24}[/indent]

If using printline, it would be like this:

Code:
printline "HELLO", @Redon, "WORLD" {>(24)}


Is it possible to use format or a different command? So I can do something like this:

Code:
for loop 
{
  //create toPrint string variable
  format toPrint as "HELLO", @Redon, "WORLD" //pseudocode, goal is to build the toPrint variable by parsing each character
}

printline toPrint {>(align)}
 
What POS system are you trying to work with?

Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
 
Hi Cathal,

I am working with Micros RES 3700.

Edit: grammar
 
Yes it should be possible to do this.

Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top