1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Progress equivalent of c# myVariable.GetType().Name?

Discussão em 'StackOverflow' iniciado por fdantas, Setembro 2, 2020.

  1. fdantas

    fdantas Administrator Moderador

    Is there a Progress equivalent for C# myVariable.GetType().Name?

    With an interface or a base type variable, can we find back the name of the real type instanciated?

    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.

    [​IMG]

    Continue reading...

Compartilhe esta Página