Shoutbox

String won't appear in J.OptionPane.. :( - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: String won't appear in J.OptionPane.. :( (/showthread.php?tid=67111)

String won't appear in J.OptionPane.. :( by albert on 10-08-2006 at 04:33 PM

hey guys I really really need your help on that one.

I don't know if it's a bug somewhere but I can't seem to actually make my string appear in a string.

my string is this

code:
"Les nombres " + nombre1s + " et " + nombre2s + " sont miroirs." ;

yet the only thing that appears when I display the string is :

code:
Les nombres  et  sont miroirs.

I can't quite seem to understand why both nombre1s and nombre2s which are both strings won't appear.
RE: String won't appear in J.OptionPane.. :( by deAd on 10-08-2006 at 05:17 PM

What are nombre1s and nombre2s? Doubt it'll help but ya never know...


RE: String won't appear in J.OptionPane.. :( by saralk on 10-08-2006 at 05:23 PM

are you sure nombre1s and nombre2s have a value?

Try setting a value just before that line.


RE: String won't appear in J.OptionPane.. :( by albert on 10-08-2006 at 05:40 PM

quote:
Originally posted by saralk
are you sure nombre1s and nombre2s have a value?

Try setting a value just before that line.

:O THANKS :D

They had a value, but it was a value that was entered by the user after the line!

Dumb me. :)

Thanks saralk. :)