Options

C/Front and reading data from a table

ZiqXxZiqXx Member Posts: 24
Hi,

Could someone tell me why my string is just empty here ?

int recNum = cf.AllocRec(tableNum);
string Var = cf.GetFieldData(tableNum, recNum, 1).ToString();
MyXmlTextWriter.WriteString(ItemNo.ToString());

What do I have to do, to read the first value in the first row in my table ?

Comments

  • Options
    fbfb Member Posts: 246
    cf.FindRec(tableNum, recNum, "-");
    
    Recommended reading: C/Front help file "cfront.chm"...
  • Options
    Alexey_PavlovAlexey_Pavlov Member Posts: 10
    But how to get values for FlowFields?
    Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand.
  • Options
    dick11dick11 Member Posts: 60
    Use CalcFields first and then the data is available just like a normal field (like C/SIDE)
    Dick van der Sar

    www.dasautomatisering.nl
Sign In or Register to comment.