> hi everybody!!!
> i have a problem showing the output to the messagebox. please help me...thanks a lot!!!
>
> example:
>
> public x
> x=1
> messagebox("The value of x is:"+x)
>
> the code is not working...I want to show the value of x.
>
>
> Christian M. Tabligan
> VFP Explorer, CSA-B
>
> Visual FoxPro is like a game...need to explore until you reach your goal to success!!!public x
x=1
messagebox("The value of x is:" + transform(x))
The reason it gives you an error is the fact that you try to show a string ("The value of x is:") and a numeric value (x)
Transform() does just that, it transforms anything to a string, even .null. values.
One remark about your code, be careful with PUBLIC variables.
If I had to use a var like this in a piece of code I'ld rather use a local variable.
Boudewijn Lutge®ink
If you pray, it's better to have a heart without words than words without a heart (Gandhi)