Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Netherlands
 Boudewijn Lutgerink
 To: Christian Tabligan
  Where is Christian Tabligan?
 Bacolod City, Neg. Occ.
 Philippines
 Christian Tabligan
 Tags
Subject: RE: show result on the messagebox
Thread ID: 108759 Message ID: 108765 # Views: 39 # Ratings: 1
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Wednesday, October 04, 2006 8:07:29 AM         
   


> 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)

COMPLETE THREAD

show result on the messagebox Posted by Christian Tabligan @ 10/4/2006 7:38:57 AM
RE: show result on the messagebox Posted by tushar @ 10/4/2006 7:46:20 AM
RE: show result on the messagebox Posted by Christian Tabligan @ 10/4/2006 7:49:34 AM
RE: show result on the messagebox Posted by Ken Murphy @ 10/4/2006 1:56:39 PM
RE: show result on the messagebox Posted by Boudewijn Lutgerink @ 10/4/2006 8:07:29 AM