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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MICROS 3700 SIM InfoMessage 1

Status
Not open for further replies.

hannajo1

Programmer
Apr 10, 2015
8
US
Hello,

What is the character limit for the SIM InfoMessage command?
 
It varies depending on what version of Micros.
I think the latest versions of RES its about 70-80 characters.
The easiest thing to do is just test it and see if it throws an ISL error Format too long!!



Do you want some custom SIM scripts developed. Contact me via my website
 
As i side note i generally implement a SUB to display infomessages so that i can tweak the length of messages easily. If you use something like this instead of InfoMessage directory then you can tweak the length as necessary and avoid Format Too Long errors.

SUB DisplayMessage(var ExitError : N1, var Message : A9999)

var MaxLength : N4 = 70 // Tweak this length as required

if(ExitError = 1)
ExitWithError MID(Message, 1, MaxLength)
elseif(IsError = 0)
InfoMessage MID(Message, 1, MaxLength)
endif

EndSub

Do you want some custom SIM scripts developed. Contact me via my website
 
CathalMF - thanks for the advice and code snippet!
 
You can also use a display window to show information that goes over this limit.

For 9700, it looks like it is about 78 characters.
302m8t1.jpg
 
Sorry, I realized I didn't add the info for the Display Window.

Code:
window 5, 40    // Rows = 5, Columns 40
  display 1, 1, “Line 1, no indent”
  display 2, 2, “Line 2, indent starting at character 2“
  display 3, 5, “Line 3, indent starting at character 5“
  display 4, @center, “Centered Text”
  display 5, 2, "

  waitforclear

A Window can have up to 14 rows and 78 Columns (characters).
 
Thanks hosehead78

Through testing I've discovered the max = 80 characters.
I'm testing on MICROS 3700 Version 5.0 RC 1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top