If sqlca.sqlcode <> 0 Then
Rollback;
MessageBox("","Fail.....")
Else
commit ;
MessageBox("',"success....")
End If
Thank U !
Enrico
Sorry for my english
Norman <nor...@taiwan.com> wrote in message
CydkfBMB$GA....@forums.sybase.com...
Have you tried getting it to fail - is that how you know it is always
zero? Does the DB get updated?
Altry try "USING SQLCA" at the end of the statement. You might also want
to take a look at the examples for dynamic sql. There are a couple
options.
HTH
Mark
TeamSybase
--
Mark Pfeifer Corporate Technology Partners, Inc.
Emerging Technology Solutions
mpfeifer@ sprynet.com www.ctpartners.com
I try "USING SQLCA" , and debug it I get result :
sqlca.sqlcode = 0
sqlca.sqldbcode = 0
sqlnrows = 1
I use INFORMIX 7.X ON-Line And PB6.0!
Mark J. Pfeifer[TeamSybase] 撰寫於文章 ...
I had tried "USING SQLCA" , and debug it ,I got result :
sqlca.sqlcode = 0
sqldbcode = 0
sqlnrows = 1
I make sure that variable 'ls_yymm' and 'ls_recid' not exist in table
"paym040".
I use PB6.0 & Informix 7.x On-Line