niralibaan
5th March 2010, 08:01
Hi,

Can anyone pls tell me how to display value of variale in messagebox while running session?

Regards,
Nirali

rahul.kolhe22
5th March 2010, 08:08
Hi,
Suppose I want to display the message "Login name is rahul", then in the case

|* Message code Message description
|* tccom12345 "Login name is %s"

mess("tccom12345", 1, logname$)

Please refer the function "mess()" for more details.

Regards,
--Rahul

george7a
5th March 2010, 08:57
Or

message("This is the value of my string variable: "&variable.value)

niralibaan
5th March 2010, 09:14
I have tried it, but not working.....giving error "r.total.amnt.value not declared".
Here r.total.amnt is my variable.

Regards,
nirali

sushil
5th March 2010, 09:20
try this.

message("Value : "& str$(r.total.amnt.value))

niralibaan
5th March 2010, 09:30
Same error is giving..not working

bdittmar
5th March 2010, 10:22
Same error is giving..not working

Hello,

declare the variable, as the error message says !

Regards

niralibaan
5th March 2010, 10:27
'r.total.amnt' variable is already declared, but error is giving while accessing its value 'r.total.amnt.value' in message box.

niralibaan
5th March 2010, 10:39
done......message("Value : "& str$(r.total.amnt)) giving value of r.total.amnt.

Thanx all for ur support

Regards,
nirali

rahul.kolhe22
5th March 2010, 10:44
Hi,
As per your post
'r.total.amnt' variable is already declared, but error is giving while accessing its value 'r.total.amnt.value' in message box
AND
I have tried it, but not working.....giving error "r.total.amnt.value not declared".
Here r.total.amnt is my variable.


You are saying that you have declared variable as "r.total.amnt" & you are trying to access variable "r.total.amnt.value". Please check whether you are using the same variable which you have declared.

If the variable is same, I think you might have declared the variable within some function or within the curly brace i.e. "{}" and you are trying to access it outside the curlly brace.
Declare the variable as global.

Hope it help.

Regards,
--Rahul