Clive Thomas Posted May 24, 2002 Share Posted May 24, 2002 I import Ordnance Survey data into VW on a regular basis. This data brings with it many as many as 40 differnt classes. At the moment I manually insert a prefix OS- in front of each class so that they will all become a subset of the 'OS' class. Is there a script that will automate this task and save me a lot of work. Many thanks. Quote Link to comment
Fuge Posted May 24, 2002 Share Posted May 24, 2002 See if this does what you want. Dave--------------------Procedure RenameClasses;VAR ClassName,NewName:STRING;i: INTEGER; BEGINi:=1; REPEATClassName:= ClassList(i);NewName:= Concat( 'OS-',ClassName );RenameClass ( ClassName, NewName );i:=i+1;UNTIL i = (ClassNum+1); Sysbeep;AlrtDialog('Renaming classes is complete!'); END;Run (RenameClasses); Quote Link to comment
Recommended Posts
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.