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

How to create a dynamic temp-table using ADD-NEW-FIELD(1st argument,'datatype') where 1st...

Discussão em 'StackOverflow' iniciado por fdantas, Dezembro 13, 2017.

  1. fdantas

    fdantas Administrator Moderador

    I want to add a column to the dynamic temp table but it seems ADD-NEW-FIELD accepts the 1st argument to be a enclosed in quotes I want the flexibility of passing variable name as an argument to ADD-NEW-FIELD, eg.** hTable:ADD-NEW-FIELD ( v_setnum , 'INTEGER').**

    DO WHILE v_setnum <= v_setmax :
    IF v_setnum = 1 THEN
    hTable:ADD-NEW-FIELD ( "PointLabel", "character").
    hTable:ADD-NEW-FIELD ( v_setnum , 'INTEGER').
    /*I get error for the above line as
    Invalid datatype for argument to method 'ADD-NEW-FIELD'. Expecting
    'character' (5442)
    */
    v_setnum = v_setnum + 1.
    END.

    Continue reading...

Compartilhe esta Página