Previous | Index | Next 

[BUG] #IF statement that use compiler constants starting with “vb”

A bug in current version of VB Migration Partner prevents the correct migration of #IF and #ELSEIF directives that use compiler constants whose name start with “vb”, as in this code:

 

#If vbExplorer Or vbElev Or vbFab Or vbInterface Then
     Public GrsElevationDetails As ADODB.Recordset 
#End If

The only available workaround is using a PreProcess pragma that modifies these names before the migration together with a PostProcess pragma that restores the correct names;


'## PreProcess "\bvb(?<name>Explorer|Elev|Fab|Interface)\b, "${name}VB"  
'## PostProcess "\b(?<name>Explorer|Elev|Fab|Interface)VB\b", "vb${name}"

 

Previous | Index | Next