Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!munnari.oz.au!bunyip!psych!strasser From: strasser@psych.psy.uq.oz.au (Michael Strasser) Newsgroups: comp.sys.mac.programmer Subject: Trouble with using Munger Message-ID: <477@psych.psy.uq.oz.au> Date: 11 Jul 90 10:56:09 GMT Organization: Department of Psychology, University of Queensland. Lines: 27 I am having a problem using Munger in a macApp program I'm writing. I am trying to use it as part of a simple text-parsing routine. Here is an example of what I have now: Given: VAR aChar : Char; text : Handle; offset : LONGINT; where : LONGINT; I have text set correctly (I've checked this), and offset set to 0. I then try to find the first tab character in a string which I know contains at least one tab using: aChar := chTab; where := Munger(text, offset, @aChar, 1, NIL, 0); but Munger returns -1, signifying that the string was not found. Am I doing anything wrong? According to my reading of IM, it should be OK. ------ Mike Strasser Psychology Dept, Univ. Of Queensland