Page 1 of 1

Why doesnt this work?

PostPosted: Thu Jun 27, 2013 11:58 pm
by spongehammer
Hi,



I want the text box to show the number contained in the variable.

The top line doesnt work but the second one does

Why?

Re: Why doesnt this work?

PostPosted: Fri Jun 28, 2013 12:04 am
by Mulkaccino
Hi spongehammer,
Drop the quotes on the variable

Variable1 instead of "Variable1"

Only strings (of text) get quotes :)Mulkaccino2013-06-28 00:04:28

Re: Why doesnt this work?

PostPosted: Fri Jun 28, 2013 12:06 am
by vtrix
you should do > set text to str(Variable1)

your var is a number and set text expects a string

also if you use a var, you shouldn't but quotes around it ""


edit: ow i guess you don't even need the str()vtrix2013-06-28 00:09:17

Re: Why doesnt this work?

PostPosted: Fri Jun 28, 2013 9:06 am
by spongehammer
@vtrix

thanks. It does need the str(Variable1) as the textbox is set to a number type.