Re: Creating a customkey from a variable

2011-04-27 Thread Pete
Have you considered a very simple SQLIte database? A simple table with columns for student, subject and score, maybe a date related column would allow you to analyse the data every which way after you've collected it. Pete Molly's Revenge On Wed, Apr 27, 2011 a

Re: Creating a customkey from a variable

2011-04-27 Thread Nonsanity
I take the last code chunk back. This does not work. :( customKeys[ myPropName ] ...Does not make a new property in the default customKeys set. I can't seem to make any new properties in the default set without setting it directly by name - which won't work if you want the name of the property to

Re: Creating a customkey from a variable

2011-04-27 Thread Nonsanity
Remember that there is the customKeys set and if you do this: put "ABC" into myCustomPropNameVar put "123" into myCustomPropValue set the myNewPropSet[ myCustomPropNameVar ] of this stack to myCustomPropValue You are creating a new key set. If you look at the Custom Properties page of the inspect

Re: Creating a customkey from a variable

2011-04-27 Thread Glen Bojsza
Hi Mark, The do script produces what I want (myscore should be score in the example) though I am still working through your array structure to see if I can get the same results... so far no luck. On Wed, Apr 27, 2011 at 11:23 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi G

Re: Creating a customkey from a variable

2011-04-27 Thread Glen Bojsza
It is the testresult that I want to be a variable. Also, your set command should be set the testresults[testname,student] of this stack to score On Wed, Apr 27, 2011 at 11:10 AM, Paul Dupuis wrote: > Why not use a two-dimensional array, as in: > > on mouseUp > put "Math" into testname > put "Ja

Re: Creating a customkey from a variable

2011-04-27 Thread Mark Schonewille
Hi Glen, One of the problems is that testname and testname[student] are different variables. First it is a simple variable, but next it is an array. When you turn testname into an array, the variable is cleared and as soon as it is cleared testname is parsed as plane text and hence as a propert

Re: Creating a customkey from a variable

2011-04-27 Thread Pete
Maybe try something like this (untested): put "Math" into testname set the custompropertyset of this stack to testname set the student of this stack to score set the custompropertyset to empty Pete Molly's Revenge On Wed, Apr 27, 2011 at 9:27 AM, Glen Bojsza wr

Re: Creating a customkey from a variable

2011-04-27 Thread Paul Dupuis
Why not use a two-dimensional array, as in: on mouseUp put "Math" into testname put "Jane" into student put "A+" into score set the testresults[testname][student] of this stack to score end mouseUp On 4/27/2011 12:29 PM, Glen Bojsza wrote: I forgot to show that the score and student can be a va

Re: Creating a customkey from a variable

2011-04-27 Thread stephen barncard
store all your info in one array then store the whole array... set the customProperties["testname"] of stack tFilepath to testname On 27 April 2011 09:29, Glen Bojsza wrote: > I forgot to show that the score and student can be a variables... > > > > On Wed, Apr 27, 2011 at 10:27 AM, Glen Bojsz

Re: Creating a customkey from a variable

2011-04-27 Thread Bob Sneidar
Not sure if this is relevant, but putting "Math" into testname is going to have no effect on setting a property of the stack called testname. There will be a variable containing "Math" and that is all. Further, you have to create the array as a variable first: put "score" into testname[student]

Re: Creating a customkey from a variable

2011-04-27 Thread Glen Bojsza
I forgot to show that the score and student can be a variables... On Wed, Apr 27, 2011 at 10:27 AM, Glen Bojsza wrote: > Hello, > > Hopefully someone is still looking at the list while the conference is > going on... > > I want to create a customkey from a variable. > > on mouseup > put "Math"