Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

 

RE: two dim arrays are referenced as array(1)(1).  Your tools like array(1,1)…  Did not have any of that is Bayer for some reason.

 

hmm, array(1)(1) is not array(1,1)  

 

VB6 has some limitations on array declarations, and sometimes an array must be declared as 1D array even though the intent is 2D.  In those situations, the tool needs to be told the symbol is a 2D array with a fixtype command:

 

<Compile>

...

<Refactor>

<FixType identifier="I" type="T[,]" />

</Refactor>

</Compile>

 

where I is the fully-qualified symbol identifier and T is the desired type.  

 

In other cases the array elements are arrays.  This results in A(...)(...) and there is a lot of ambiguity given the nuances of default properties, parameterized properties, etc.  Its a similar situation; you must add a fixtype:

 

<FixType identifier="I" type="T[][]" />

 

The tool actually supports a much richer declarative syntax that VB6, so I guess you can address it with a pre-edit as well, but the fixtype is a more resilient and readable technique.

  • No labels