Before doing so with DBF
oFrPrn:SetWorkArea( <alias>, Select( <alias> ) )
Someone who uses know how to do using the TDolphin?
cSql := "SELECT c.id, c.id_epoca, e.epoca, c.id_patrimoni "
cSql += "FROM cat_epoques c "
cSql += "LEFT JOIN epoques e ON e.id_epoca = c.id_epoca "
cSql += " WHERE c.id_patrimoni = "
cSql += ltrim(str( nId ))
oRsEpo := oDb:Query( cSql )
cFldCar := "id_carrer;mini;numero"
FrPrn:SetUserDataSet( "oRsCar", cFldCar,;
{|| oRsCar:GoTop() },;
{|| oRsCar:Skip(1) },;
{|| oRsCar:Skip(-1) },;
{|| oRsCar:EoF() },;
{|nField| oRsCar:FieldGet( nField ) })
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 84 guests