Mr. Rao:
currently I use the following code to delete a record in a table
Or
is there a shorter code to do the same?, I mean in your FWFuncs.
With best regards
currently I use the following code to delete a record in a table
   cCmdSql  := "DELETE FROM " +;
           "HdrPro " +;
         "WHERE " +;
           "HDR_PRO = " + Str(oRsHdr:Fields("HDR_PRO"):Value,05,0)
   TRY
     oApp:oCon:Execute(cCmdSql)
   CATCH oError
     MsgInfo("No pude ejecutar el comando " + cCmdSql,oApp:cAplicacion)
     FW_ShowAdoError(oApp:oCon)
      cCmdSql := "ROLLBACK"
      TRY
        oApp:oCon:Execute(cCmdSql)
     CATCH oError
        MsgInfo("No pude ejecutar el comando " + cCmdSql,oApp:cAplicacion)
     END
   ENDOr
    oRsHdr:Delete()is there a shorter code to do the same?, I mean in your FWFuncs.
With best regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero