Private variables

For questions about using Classic.

Post » Tue Aug 16, 2011 12:45 pm

Yea, it's another one of my stupid questions... :P

I'm simply trying to set the width of an object to a private variable of another. I've got SpeedControl.Value(speed) but it says "speed is an unrecognizable system expression or usable object name".

What am I doing wrong?
B
8
S
2
G
2
Posts: 144
Reputation: 1,588

Post » Tue Aug 16, 2011 1:04 pm

("speed"), or ('speed'), perhaps?
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273

Post » Tue Aug 16, 2011 1:14 pm

Ah, the second was the charm! Thanks.
B
8
S
2
G
2
Posts: 144
Reputation: 1,588

Post » Tue Aug 16, 2011 7:27 pm

Your welcome. It helps to just think of anything that you make a name for as needing quotes, like "Layout One", image point "point", and then anything that's not a string with single quotes, like global.variable('toggle'), etc.
However you can get away using some named things without quotes if you name them as numbers IE image point 1, but everything you use letters for must use quote, or double quote.
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests