Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!agate!shelby!msi.umn.edu!noc.MR.NET!gacvx2.gac.edu!hhdist From: john%solvint@orstcs.UUCP Newsgroups: comp.sys.handhelds Subject: RE: EDIT/VISIT syseval or address needed Message-ID: <9101162216.AA06172@CS.ORST.EDU> Date: 16 Jan 91 16:52:44 GMT Lines: 43 To: handhelds@gac.edu Return-path: <@cse.ogi.edu:orstcs!solvint!john@cse.ogi.edu> In-reply-to: ; from "gac.edu!handhelds" at Jan15, 91 11:53 am To: handhelds@gac.edu Mailer: Elm [revision: 64.9] > Recently, a couple of folks have asked for the syseval or address for > the builtin EDIT/VISIT routine. I find myself now interested in that > also, as I've started writing a simple-minded text manager. It would > be a lot smaller and easier to just shove a string in to be edited than > to do it manually, so if anyone knows how to programatically invoke > EDIT or VISIT, I'd really like to know. > The purpose of the INPUT command is to accomplish this in a program. Something along the lines of: "EDIT mode" { 1 1 V } ROT \->STR + INPUT OBJ\-> or something like it will accomplish what you are after. > Also, I needed to convert a string into a global name object, and after > a little experimentation, I came upon the following code to do that. > It seems there ought to be an easier way -- does anyone know of an > easier method of doing this type of conversion? > > "string" --> 'string' (when a variable exists called string) > > << "'" SWAP + "'" + OBJ-> >> > With only slight modification, this is indeed the way to accomplish what you are after. "'" SWAP + OBJ\-> is all that's required, since the parser is intelligent and will assume the final "'". An easier way? What could be easier than that? > > Thanks much! > > bruce -- John W. Loux | Solve and Integrate Corp solvint!john@orstcs.cs.orst.edu | PO Box 1928 john@solvint.uucp | Corvallis, OR 97339-1928 | (503) 754-1207