home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / hypercar / 4158 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.0 KB  |  29 lines

  1. Organization: Science & Technology Center, Carnegie Mellon, Pittsburgh, PA
  2. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!usc!zaphod.mps.ohio-state.edu!cs.utexas.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!gb2a+
  3. Newsgroups: comp.sys.mac.hypercard
  4. Message-ID: <of0LzL200UhWI6K19v@andrew.cmu.edu>
  5. Date: Wed, 11 Nov 1992 16:49:11 -0500 
  6. From: "George J. Baxter" <gb2a+@andrew.cmu.edu>
  7. Subject: XCMD getfieldTE 
  8. Lines: 19
  9.  
  10. Howdy,
  11.     I'm trying to get a field TEHandle from inside a XCMD, and I'm
  12. running into a bomb.. Here's a little clip of code:
  13.  
  14.  
  15.                     GetIndString (fld, 401,1);                  // getting field name
  16. from rsrc
  17.                     newString = PasToZero(paramPtr, fld);       // convert to c-string
  18.                     HLock(newString);
  19.                     fldHdl = GetFieldTE(paramPtr,1,0,0,(unsigned char *)*newString); //boom
  20.  
  21. fldHdl is declared and a TEHandle, and 'fld' is a str255, newString is a
  22. Handle.
  23.  
  24. 'fld' is correctly the field name. (checked via SetFieldByXXX)
  25.  
  26. Any ideas?
  27. -gjb
  28.  
  29.