Jump to content
Developer Wiki and Function Reference Links ×

Scripting - backwards compatability


Recommended Posts

Is this just a script or is this a PIO?

 

If it is just a script, then there is a section in the function reference that gives the procedures/functions that were added in each version and on each procedure/function page there is a Version section that tells you what version of VW it has been available since.

 

If you are doing PIOs, then you probably want to develop in VW2021 as the PIO "wrapper" information is not backwards compatible. Meaning that VW2026 can (probably) use a VW2021 PIO, but if you write it in 2026, you can move the script portion back to 2021, but you will have to define all of the Plugin Parameters again in 2021.

 

HTH

Link to comment

The function reference contains a section explaining which version the function was first implemented in.  Any version matching or newer than that is completely fine.  In my experience, Vectorscript has changed very little over the years, with relatively few "critical" changes.  The bigger thing that you will need to be concerned with is that the scripts themselves will be locked to the version or newer that they are written in.  This means that you will need to have VW2021 installed on your machine and be the copy that you write the script in the editor.  If you edit that script in a later version, that script will be locked to that version.  It's why I still have a copy of VW2019 installed on my machine.

 

For menu commands or document scripts, this isn't a huge deal since you can copy and paste the script from one version's editor to the other, but it becomes a bummer for Plug-in Objects since you'll need to redefine all of the parameters each time, as @Pat Stanford pointed out.

Link to comment

I write most of my stuff in 2026, then re-create it in 2021.   2021 has two things in the script editor that drive me crazy:  compiling returns to line 1, and there's no search function.   So, I've found it easier to do all of my writing in 2026, then just copy/paste back to 2021 and re-enter all the parameters.  Thus far, I have not found any procedures that don't work in 2021, but I'm not doing anything really crazy.  However, I have found some ways in which the script functions slightly differently depending on 2021 vs. 2026.  

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...