Temporary table in datasource of grid


public  TableField   TableField(FormDataSource _ds)
{
    Table buffer;
    Table tmp;
    int NumberRecords;
    ;
    while(NumberRecords < _DS.numberOfRowsLoaded())
    {
        NumberRecords ++;
        if(NumberRecords == 1)
            buffer = _DS.getFirst();
        else
            buffer = _DS.getNext();
         tmp.clear();
         tmp.data(buffer.data());
         tmp.insert();
    }
    select firstonly tmp;
    return tmp.Field;
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.