When Visual Expert analyses your code, some references to dataobjects may be missing. This article explains how to declare MessageBox Exceptions to help Visual Expert identify such references when they are created indirectly.
Missing references typically occur in cases of indirect usage, for example:
In these situations, Visual Expert cannot automatically determine that:
As a result, the related references are not detected during analysis.
A MessageBox Exception allows you to explicitly declare how Visual Expert should interpret certain parameters or values. By defining an exception, you instruct Visual Expert to treat specific parameters as meaningful references so that missing links can be identified during code analysis.





Example: Objects created dynamically based on names passed as strings to a function parameter.
In this case, the createperson function has a parameter named s_className,
where the user passes the object or type name to be created dynamically.


The analysis will start.
After the analysis is completed, Visual Expert displays the items found from the
s_className parameter values passed to the createperson function.
Select any individual item and click Impact Analysis to find its references.
The above example shows the createperson function using a classname as a parameter,
creating an instance of s_className, and returning the same type or an ancestor type.
This approach helps identify dynamic type names and ensures their references are included during analysis.
EXAMPLE:
u_person o_student;
if id = 1 then
o_student = createperson ("u_student");
else
o_student = createperson ("u_teacher");
end if