Creating a customkey from a variable

Glen Bojsza gbojsza at gmail.com
Wed Apr 27 13:31:08 EDT 2011


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 <paul at researchware.com> wrote:

> 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 variables...
>>
>>
>>
>> On Wed, Apr 27, 2011 at 10:27 AM, Glen Bojsza<gbojsza at gmail.com>  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" into testname
>>> set the testname[student] of this stack to score
>>> end mouseup
>>>
>>> this doesn't create the customkey or properties for me but if I don't use
>>> a
>>> variable it will work?
>>>
>>> on mouseup
>>> set the Math[student] of this stack to score
>>> end mouseup
>>>
>>> I really would like to use a variable so I can automatically create the
>>> customkeys on the fly.
>>>
>>> Any suggestions?
>>>
>>> regards,
>>>
>>> Glen
>>>
>>>  _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>>
> --
> Paul Dupuis
> Cofounder
> Researchware, Inc.
> http://www.researchware.com/
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list