General Discussions
Rename Types

Is there any way to rename a type? I can't figure out a way through the application configuration or through export & sync. I have tried exporting and changing the name on the VTS_Reserved tab and deleting the export info and data fields but that didn't seem to work.

Alternatively, is there an easy way to make a copy of a type?

Anyone have any ideas?

Is there any way to rename a type? I can't figure out a way through the application configuration or through export & sync. I have tried exporting and changing the name on the VTS_Reserved tab and deleting the export info and data fields but that didn't seem to work. Alternatively, is there an easy way to make a copy of a type? Anyone have any ideas?

Easy? No. No user-interface tools are provided for this. But, it's certainly not impossible. You just have to edit a bit of code.
<<Note. You are strongly advised to read the introductory chapters of the Programmer's Guide portion of the documentation before doing anything at the code level. Also, to make a backup of your application before touching the code.>>

There are three parts to a type definition:

  • The TypeName.SRC file.
  • The sub-folder, ChildTags\TypeName
  • The declaration in the [POINTS section of AppRoot.SRC.

Your safer route is to copy all three to make a NewTypeName version of each. This way, you won't need to search out everything else (such as widgets) that are coded to use TypeName. Remember to Import File Changes in the VAM. And note that if you edit a tag's TypeName.SRC file, it immediately starts to count against your license. This is necessary to ensure that you can't side-step the license limit by adding I/O features to a new type.

Or, you could learn to like whatever name you used in the first place. smile

Easy? No. No user-interface tools are provided for this. But, it&#039;s certainly not impossible. You just have to edit a bit of code. &lt;&lt;Note. You are _strongly_ advised to read the introductory chapters of the Programmer&#039;s Guide portion of the documentation before doing anything at the code level. Also, to make a backup of your application before touching the code.&gt;&gt; There are three parts to a type definition: - The TypeName.SRC file. - The sub-folder, ChildTags\TypeName - The declaration in the [POINTS section of AppRoot.SRC. Your safer route is to copy all three to make a NewTypeName version of each. This way, you won&#039;t need to search out everything else (such as widgets) that are coded to use TypeName. Remember to Import File Changes in the VAM. And note that if you edit a tag&#039;s TypeName.SRC file, it immediately starts to count against your license. This is necessary to ensure that you can&#039;t side-step the license limit by adding I/O features to a new type. Or, you could learn to like whatever name you used in the first place. :)
63
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft