lineoffset

Jim Ault jimaultwins at yahoo.com
Fri Nov 6 18:24:34 EST 2009


Like I said before, you need to answer the question:

What is ( item 1 of field "storage" ) ?
Use the variable watcher and breakpoint.
This will show you why you would get 0 (not located)
unless you clicked 'Myeloblast', and then you would get 1.

Jim Ault
Las Vegas


What is the
On Nov 6, 2009, at 3:07 PM, Rick Rice wrote:

> Hey thanks Jim and Shao and Craig:
>
> What I have is a field "storage" in which detailed descriptions of  
> various white blood cells is stored. Like this;
> 	Myeloblast|and now a detailed discussion of Myeloblast ..............
> 	Promyelocyte|and now a detailed discussion of  
> Promyelocyte ..............
> 	Myelocyte|and now a detailed discussion of Myelocyte ..............
> 	Metamyelocyte|and now a detailed discussion of  
> Metamyelocyte ..............
>
> In a list field in which I have the list of cells like this;
> 	Myeloblast
> 	Promyelocyte
> 	Myelocyte
> 	Metamyelocyte
> 	etc ....
>
> Then I have another field called "display"
>
> So in the list field script I have the script:
>> on mouseUp
>>   set itemdel to "|"
>>   get the clicktext
>>   put lineoffset (it, item 1 of cd field "storage")
> 	and other stuff
>> end mouseUp
>
> 	What I want is for the student to click on a cell name in the list  
> field. Take the name they clicked on and look for it as the first  
> item in the storage field. Once it has found the line in the storage  
> field then take item 2 of that line and put it into the display field.
>
> As I said, when I enter the script the editor accepts it and does  
> not give any error but, it always returns 0
>
> Rick
>
>
> On Nov 6, 2009, at 1:24 PM, Shao Sean wrote:
>
>> Rick, can you give us an example of the data in the field? If the  
>> text is something like "moo|cow" then the clickText will return the  
>> whole line "moo|cow" and not just the first item like it looks like  
>> you are trying to do..
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

Jim Ault
jimaultwins at yahoo.com






More information about the use-livecode mailing list