Support Statement: Type Inference and Type Replacement
In order to change the type of a symbol, the tool must recognize, or infer, or be told explicitly what the original type of that symbol is.Â
The fixtype command is a way of explicitly telling the tool the original type of a symbol.  As an aside, It is usually more effective to apply fixtype commands to function return types than to individual application variables because functions are used in type inference of many symbols.Â
The target attribute of the fixtype command is the original type, a vb or COM type of the symbol.  It is not the desired .net type.Â
The desired .net type is typically specified in a modified copy of the IDF that defines the original COM type, by adding a migname attribute to the coclass.Â
Of course this only works if you are loading the modified IDF that contains both the original type and the IDF attribute. Â This is done with a reference command.Â
The FMStocks sample illustrates how to load custom IDFs for ASP site upgrades that include COM replacements.Â