Digital Workshop
http://forum.digitalworkshop.co.uk/

Naming objects and variables
http://forum.digitalworkshop.co.uk/viewtopic.php?f=29&t=3008
Page 1 of 1

Author:  Charles Polkey [ November 22nd, 2007, 12:17 pm ]
Post subject:  Naming objects and variables

I have just spent a couple of hours sorting out a problem displaying a variable (Welldone) in a text box. In preview the variable wasn't displayed and this replaced it [ilmObject Welldone]. I eventually realised that I had inadvertantly given the variable and an object the same name. After renaming the variable it displayed as it should. Thought it might help if anyone had a similar problem.

Author:  mackavi [ November 23rd, 2007, 12:18 pm ]
Post subject: 

Hi Charles,

From a progammer's perspective - try using a different prefix for different aspect especially variables for example use $variable or myVariable this will help avoid this problem.

Mack

Author:  Paul [ November 23rd, 2007, 7:12 pm ]
Post subject: 

I start the name of a variable with v (eg vFix), the name of a text box with t (tFix), a vector with v (vFix), a button with b (bFix), etc.
Make the second letter a capital to make reading easier.
Then you will recognize things in Opus for what they are, both in the organizer and in script.

Paul

Author:  Charles Polkey [ November 26th, 2007, 10:32 am ]
Post subject: 

Thanks guys - helpful stuff to a non programmer!

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/