Thanks for your reply.
But how do i read the field values of this common variable?
It does not work if I add a variable for the table, i.e. the zipcode
table. Can you please shed your light over this too?

void clicked()
{
    Common tmpDS;
    ZipCode zipCode;
    ;

    if (DataSource1_DS.getFirst(true))
    {
    for ( tmpDS = DataSource1_DS.getFirst(true); tmpDS; tmpDS =
DataSource1_DS.getnext())
    {
        //do something with the selected lines
        //Box::info(tmpDS.ZipCode()); //-> this does not work
        Box::info( zipCode.ZipCode);
    }
    }
    else
    {
        //only one line selected
        //Box::info(tmpDS.ZipCode());//-> this does not work
        Box::info( zipCode.City);
    }
}





Yahoo! Groups Links

Reply via email to