J. Miller 6 Posted June 3, 2008 Is there a way to re-name a Symbol the is currently in the Active File. I would like to concat some additional text to the end of the existing name. symname := GetSymname(h); seem to be missing a SetSymName(h, Concat(symName,'_blah') or something like this? Thanks In Advance Jeff Miller Quote Share this post Link to post
Frank Brault 31 Posted June 3, 2008 Hi Jeff, Here is a quick test that works on single-symbol test file. hth, Frank Brault Procedure RenameSymb; Const kSuffix = ' symbol'; Var gSymName : String; gSymDefHan : Handle; Begin gSymDefHan := FSymDef; gSymName := GetName(gSymDefHan); Message(gSymName); SetName(gSymDefHan, ConCat(gSymName, kSuffix)); End; Run(RenameSymb); Quote Share this post Link to post
maarten. 1 Posted June 3, 2008 (edited) SetName(h,name); will do the trick. EDIT: sorry, didn't see Frank's post Edited June 3, 2008 by maarten. Quote Share this post Link to post
J. Miller 6 Posted June 3, 2008 thanks a lot Frank & Maarten That worked great! Wasn't sure if I could use SetName in ths applictaion or not, but now I know Jeff Quote Share this post Link to post