Path: news1.icaen!news.uiowa.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.erols.net!news.sprintlink.net!news-peer.sprintlink.net!news.maxwell.syr.edu!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!portc02.blue.aol.com!newstf02.news.aol.com!audrey01.news.aol.com!not-for-mail From: mikew50@aol.com (MikeW50) Newsgroups: comp.sys.apple2.programmer Subject: Re: GSoft Specification Date: 4 Feb 1997 20:53:17 GMT Organization: AOL http://www.aol.com Lines: 65 Message-ID: <19970204205300.PAA25729@ladder01.news.aol.com> References: <19970204025401.VAA08221@ladder01.news.aol.com> NNTP-Posting-Host: ladder01.news.aol.com X-Admin: news@aol.com Part 4 Named Subroutines ----------------- CALL identifier parameter-list DECLARE subroutine-declaration FUNCTION name parameter-list SUB name parameter-list Error Handling -------------- ERL (returns error line) ERROR expression (flags an error) ERR (returns error number) Strings ------- ASC '(' string-expression ')' CHR$ '(' expression ')' LEFT$ '(' string-expression ',' expression ')' LEN '(' string-expression ')' MID$ '(' expression ')' RIGHT$ '(' expression ')' STR$ '(' expression ')' VAL '(' string-expression ')' Input/Output ------------ CRSLIN (returns the cursor line) DATA data [ ',' data ]* GET identifier (read a key from the keyboard) HOME HTAB expression (set the cursor column) INPUT [ string expression ] ';' l-value [ ',' l-value ]* INVERSE MOUSETEXT NORMAL POS (returns cursor column) READ l-value [ ',' l-value ] RESTORE PRINT [ expression | SPC '(' expression ')' | TAB '(' expression ')' [ ',' ';' ] ]* PRINT USING line [ expression [ ',' expression ] ] SPEED= expression TEXT VTAB expression (set the cursor line) High-Res Graphics ----------------- All high-res graphics commands use the 320x200, 16 color Apple IIGS graphics screen. The will function on the 640x200 screen as well, but toolbox calls must be used to set up that screen. QuickDraw II graphics commands may be used without initializing the tools, setting up desktop programs, and so forth so long as HGR is used at least once before the first QuickDraw II call. HCOLOR= '(' expression ')' HGR HPLOT expression ',' expression [ TO expression ',' expression ]