One of our default metalang files (
vbmethods.xml) has this definition of the VB6 Split method:
It indicates that the last three args are optional.
Another default metalang file (
VBASIC.XML) has these standard target patterns for Split:
Notice that the
loc form explicitly omits all arguments but the second one.
Our MigrationSupport.dll has overloaded extension methods that support different number of arguments.
To take advantage of these overloaded extension methods you need to use a custom metalang configuration. You can activate a custom metalang file from the Settings form. Find
vbasic.xml in the Metalang files list, then right click and select
Activate. This will copy the default file to your user folder and modify the metalang script to reference that copy. Repeat the process for
Next, open the
usr/VBASIC.XML file and change the
loc target pattern for
%o notation in a target pattern to tell the tool to only emit an actual argument if one was specified in the source. For example:
Note the above changes will author a ",," malformation if actual arg 4 is given and arg 3 is omitted in a call. Normally, this is not a big issue; however if it is, custom handling of the
Split operation will be needed to select different patterns.
usr/vbmethods.xml mark the last two arguments as overloaded:
Use snapshot, translate, compare to check the result.