Post
by czavala » 29 Apr 2008, 19:02
Posted by: Conrado ZAVALA
Hello Mirko,
I'm not sure if you already tried this but what I have done is something
like this:
On SAM_Click
! CAPTURE SQL ERROR:
When SqlError
Call SqlExtract( ... )
...
Call WebMessageBox( ... )
Return FALSE
! PREPARE and execute SQL Statement:
If SqlPrepareAndExecute( hSql, "SELECT NAME INTO :sName FROM..." )
Call SqlFetchNext( hSql, nSqlFetch )
! RELEASE connection:
Call SqlCommit( hSql )
VALIDATE nSqlFetch:
If nSqlFetch = FETCH_Ok
Return TRUE
Return FALSE
Conrado