object properties vp giving result as 0
I have created object properties verification point to check the label text. I am passing the variable by appending it to the text as
Result = LabelVP (CompareProperties, "Text="&inputText "VP=Object Properties;Wait=2,1")
Even the inputText value is same as the lable text I am getting the result as 0 instead of 1. Please tell me the solution for this.
You might try SQAGetProperty instead. Let me give you a hint.
Dim status As integer
Dim recMethod as String
Dim value As String
Const property As String="label"
status = SQAGetProperty(recMethod, property, value)
If status = 0 then
SQAConsoleWrite("something went wrong " & "Status=" & status
From the value of status you can decide what to do. The meaning of the status codes are in the help or the SQABasic manual.