transfer result from function into temporary table field ?

valkatamakevalkatamake Member Posts: 38
I have table with function which returns DATE
I want to copy the result (date) into temporary table "field1";
and i want to sort that field
tabletemp.INIT;
tabletemp."field1":=table.function(result);
tabletemp.COPY(table);
tabletemp.INSERT;
tabletemp.SETCURRENTKEY("field1");

where i go wrong ?

Comments

  • krzychub83krzychub83 Member Posts: 120
    abletemp.INIT;
    tabletemp."field1":=table.function(result);

    // 1. You over write value in Field1 at this step
    tabletemp.COPY(table);

    tabletemp.INSERT;
    tabletemp.SETCURRENTKEY("field1");
    abletemp.INIT;
    tabletemp:= table;
    tabletemp."field1":=table.function(result);
    tabletemp.INSERT;
    tabletemp.SETCURRENTKEY("field1");
    tabletemp.ASCENDING(TRUE);
  • valkatamakevalkatamake Member Posts: 38
    10x O:)
Sign In or Register to comment.