Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!gatech!ncsuvx!dcc From: dcc@ncsuvx.ncsu.edu (Daniel Carr) Newsgroups: comp.sys.mac.programmer Subject: TEGetText and TESetText Keywords: THINK,pascal,TE,Text Message-ID: <2963@ncsuvx.ncsu.edu> Date: 9 May 89 21:04:31 GMT Reply-To: dcc@ncsuvx.ncsu.edu (Daniel Carr) Distribution: na Organization: NCSU Computing Center Lines: 17 i'm using lightspeed pascal 2.0 and i'm writing a text filter as an extension to Stephen Chernicoff's MiniEdit program. I use TEGetText to get a handle to the actual text (a packed array of characters) and then i create a new handle. I read a character from the first and put it in the second (filtering some characters if necessary). Then i use TESetText to plug the second one back into the TextEdit record. But what do i do with the first one? i don't need it anymore, so i want to dispose of it, but if i do, the handle in the TextEdit record (hText) gets nullified. thanks for any help, daniel "I steal from the rich and give to the poor, namely me." -Robin Hoodlum >>>>>>>>>>>>>>>>>>>>>>>> Daniel C. Carr <<<<<<<<<<<<<<<<<<<<<<<< >>>>>>> North Carolina State University Computing Center <<<<<<< dcc@ncsuvx.ncsu.edu netoprdc@ncsuvm.BITNET d.c.carr, GEnie