Jump to content
Developer Wiki and Function Reference Links ×

Rename Symbol


Recommended Posts

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

Link to comment
Guest Frank Brault

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);

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...