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

typeof equivalent of .NET for ABL Progress Openedge

Discussão em 'StackOverflow' iniciado por fdantas, Fevereiro 14, 2018.

  1. fdantas

    fdantas Administrator Moderador

    I have added System.Messaging to my assemblies.xml cause I need to use this in my Progress OpenEdge application. However I ran into a problem.

    In C# when assigning:

    m.Formatter = new XmlMessageFormatter(new[] { typeof(TrowConfiguration) });
    TrowConfiguration myConfiguration = m.Body as TrowConfiguration;


    However I now want to do this in ABL. I first used a method to read a string and just passed a CHARACTER EXTENT 1 INITIAL "System.String" to the XmlMessageFormatter object. However I tried changing this to the path of my object, TrowConfiguration, but this doesn't work and gives me an error.

    This is what I had:

    Define variabe TargetTypes as character extent 1 INIT "System.String".

    msgReceived:Formatter = NEW XmlMessageFormatter(TargetTypes).


    But now I want to send objects, any help on how I can do this in ABL?

    Thanks in advance.

    Continue reading...

Compartilhe esta Página