In SX Microcontrollers, SX/B Compiler and SX-Key Tool, johncouture wrote: In many programs (and the docs) there is a directive called ID. I understand how to SET it but how do you display it? Using the example from the docs: ID "GPXv2.1" and put it directly under the FREQ statement and limit it to 8 chars or less. When I try to use Jon's TX_OUT subroutine (for example): TX_OUT ID it says the ID is a reserved word. TX_OUT allows a string or byte to be sent to your output device (in my case an LCD panel). ' ------------------------------------------------------------------------- TX_Out: ' Use: TX_OUT [ byte | string | label ] ' -- "aByte" is variable or constant byte value ' -- "string" is an embedded literal string ' -- "label" is DATA statement label for stored z-String ' -- Written by Jon Williams (Parallax) TX_temp3 = __PARAM1 ' get byte or string offset IF __PARAMCNT = 2 THEN TX_temp4 = __PARAM2 ' get string base DO READ TX_temp4 + TX_temp3, TX_temp5 ' read a character IF TX_temp5 = 0 THEN EXIT ' if 0, string complete TX_BYTE TX_temp5 ' send the byte INC TX_temp3 ' point to next character TX_temp4 = TX_temp4 + Z ' update base on overflow LOOP ELSE TX_BYTE TX_temp3 'transmit the byte value ENDIF RETURN ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=197972 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)