Help with dragdata["private"] needed
Klaus Major
klaus at major-k.de
Wed Sep 3 09:53:41 EDT 2008
Hi trevor,
> On Sep 3, 2008, at 9:05 AM, Klaus Major wrote:
>
> Hey Klaus,
>
>> set the dragdata["private"] to "A private string"
>> put the dragdata
>> ## Nothing gets "put" into msg?
>> end dragstart
>
> What does put the dragData["private"] show? If you don't specify a
> key then the dragData returns the dragData["text"]
OK, I see, changed it to
...
set the dragdata["private"] to "A private string"
put the dragdata["private"]
## puts the correct string!
So far, so good...
>> Script of "d_target" (one of a lot of variations):
>> on dragdrop
>> set the hilite of me to false
>> ## Works, see dragenter
>>
>> if the dragdata = "private" then
>> answer "Privat!"
>> end if
>
> To check for a particular type you need to check the keys of the
> dragData. So check if "private" is among the lines of the keys of
> the dragData.
Aha, but after I changed this (again) to the most obvious (which was
my first try):
Script of "d_target":
on dragdrop
set the hilite of me to false
put the dragdata["private"]
## Nothing gets put?!
end dragdrop
And exactly that is my problem :-)
> Regards,
>
> --
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Developer Resources: http://revolution.bluemangolearning.com
Best
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list