Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query about PowerBuilder function.

Status
Not open for further replies.

nik11

Programmer
Feb 6, 2010
34
0
0
US
I have the code as follows:

If function1(arg1,arg2) = 1 Then
A
Else
B
End If.

The function returns 1 on successful completion and -1 on failure.

The code works fine but when the function returns -1 and I check the value of function(Arg1,Arg2) in Quick Watch I see it as 1, even though the part B is properly executed.

Can anyone please tell me what could be the reason for that??
 
there have always been problems with the refreshment of values of quick watch. Did you try to delete it from quick watch and add it newly again after execution? (if that is possible with a function?).

For example I found many times the same problem but with variables in the quick watch. You add them newly and show the correct result.

hope it helps


regards,
Miguel L.
 
Thanks for the reply Miguel.....I tried doing it as you said but still its not showing the correct value. But no worries since the code is working fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top