Search found 2 matches

by bradleywoods
Mon May 30, 2016 1:56 am
Forum: MegunoLink
Topic: SetText to the value of a string variable.
Replies: 2
Views: 12731

Re: SetText to the value of a string variable.

Well, right after posting this it occurred to me that I can just hack my way around the problem like this:

Serial.print("{UI|SET|TextBox1.Text=");
Serial.print(abs(finalValue_mm * 2 / 100));
Serial.println("}");

Certainly not ideal, but at least I'm moving forward again. Any input would sure ...
by bradleywoods
Mon May 30, 2016 1:30 am
Forum: MegunoLink
Topic: SetText to the value of a string variable.
Replies: 2
Views: 12731

SetText to the value of a string variable.

OK, this seems like it should be a no-brainer, what am I missing?

Why does this work:
UserControl1.SetText("TextBox1", "foo");

But this fails:
testing = "foo";
UserControl1.SetText("TextBox1", testing);

I've spent hours on these 2 lines of code. My head is about to pop. What am I missing ...