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 use `export` with buffer?

Discussão em 'StackOverflow' iniciado por fdantas, Agosto 15, 2019.

  1. fdantas

    fdantas Administrator Moderador

    Exporting the data of a table before deleting it work like a charm.
    Example :

    OUTPUT TO VALUE("C:\mytable.d") APPEND.
    EXPORT mybd.mytable.
    OUTPUT CLOSE.
    DELETE mybd.mytable.


    However, I've yet to make it work when using a buffer instead. The following export me an integer instead of the data deleted.

    DEF INPUT PARAM hlTableToDelete AS HANDLE NO-UNDO.
    ...
    OUTPUT TO VALUE("C:\" + hiTableToDelete:NAME + ".d") APPEND.
    EXPORT hlTableToDelete:HANDLE.
    OUTPUT CLOSE.
    hlTableToDelete:BUFFER-DELETE().


    Which syntaxe is needed for command export to work and actually export the data of the buffer?

    Continue reading...

Compartilhe esta Página