Take a look at
http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=33
It talks about the recordcount property and cursor problems.

Parke

On Tue, Jan 10, 2012 at 12:25 AM, Kiran Ogeti <[email protected]> wrote:

> I am trying the following code, but unable to get recordcount in order to
> check whether empty or not.. rather it always returning -1 regardless
> records exist or not.. PLS HELP
>
> set cmdObj= createobject("adodb.command")
> Set rsObj =createobject("adodb.recordset")
>
> cmdObj.ActiveConnection = strCon
>
> cmdObj.CommandText = SqlQuery
>
> Set rsObj = cmdObj.Execute' Run the SQL query
> MSGBOX rsObj.RecordCount
>
> thanks all
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en




-- 
Parke
Cell: 770-842-0121

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to