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 Chris Miller 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 - Trim Check Number 2

Status
Not open for further replies.
Mar 17, 2010
78
US
Hello, I am working on a SIM that reprints check numbers on the bottom of each ticket. I only want to display the last 2 digits of the 4 digit check number.

Would someone please provide an example of trimming the 4 digit check number to 2 digits.

Thanks
 
var chk_num : a6
var last_2_chk_num : a2

chk_num = @CKNUM

last_2_chk_num=mid(chk_num,(len(chk_num)-1),2)



 
Worked like a champ Mike, thanks.

While you are on a roll I got one more question that should be an easy one.

How do you change fon size/weight?

For example, if I have the following line:
format gstchknum as "Your check number is: ",last_2_chk_num

How would I go about increasing the size of the font of that string?

Thanks again.
 
when you go to print use the @DWON and everything to the right will print double wide


Also be careful with the logic above. If you reset check numbers to 1 you need to add logic to pad a check number with a length of one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top