A
AXMIM
Guest
Is there a Progress equivalent for C#
With an interface or a base type variable, can we find back the name of the real type instanciated?
I've tried
Continue reading...
myVariable.GetType().Name
?With an interface or a base type variable, can we find back the name of the real type instanciated?
Code:
ShowRealType(NEW myUserDefinedError()).
METHOD PUBLIC VOID ShowRealType(viError AS Progress.Lang.ERROR):
MESSAGE /***** NEED CODE TO FIND THE REAL TYPE OF viError here ******/ VIEW-AS ALERT-BOX.
END METHOD.
I've tried
viError:GetClass():ToString()
, but its gives Progress.Lang.Class_1025
instead of myUserDefinedError
.Continue reading...