Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

One of our default metalang files (vbmethods.xml) has this definition of VB6.Split method:

Wiki Markupcode
  <method id="Split" type="String[]" opcode="VBF.112">
      <argument id="Expression" type="String" status="ByVal"/>
      <argument id="Delimiter" type="String" status="ByVal" optional=" "/>
      <argument id="Limit" type="Integer" status="ByVal" optional="-1"/>
      <argument id="Compare" type="VbCompareMethod" status="ByVal" optional="1"/>
   </method>

   

It indicates that the last three args are optional.  

Another default metalang file (VBASIC.XML) has these standard target patterns for Split:

 

Code Block
      <subcode id="Split">  
         <loc status="extension" role="function" narg="4" code="%1d.Split(%2d)"/>  
         <vbn role="function" narg="4" code="Strings.Split(%1d,%2d,%3d,%4d)"/>
         <jvs role="function" narg="4" code="Split(%1d,%2d)"/>
         <csh role="function" narg="4" code="VBNET.Strings.Split(%1d,%2d,%3d,%4d)"/>
      </subcode>
 

Notice that the loc form explicitly omits all arguments but the second one.   This is to fit within the limits of the BCL String.Split.  

...