How to read table field's default value?

Discussão em 'StackOverflow' iniciado por fdantas, Maio 22, 2017.

  1. fdantas

    fdantas Administrator Moderador

    I want to read a table field's default value. I'm currently using the following syntax:

    DEF VAR iDefaultValue AS INT NO-UNDO.

    iDefaultValue = BUFFER MyTable:BUFFER-FIELD("MyField"):DEFAULT-VALUE.


    However, when this field gets renamed or there is a typo, it will go thru the compiling process successfully and the possible error is thrown later at the runtime.

    Is there any other way to read this value without writting and passing it as string? I'd like to catch any typos or errors with simple syntax check.

    Continue reading...

Compartilhe esta Página