Line 6 of fld "test" works but the target does not

J. Landman Gay jacque at hyperactivesw.com
Sat Apr 23 15:17:57 EDT 2016


On 4/23/2016 11:52 AM, Sannyasin Brahmanathaswami wrote:
> Interesting but this still doesn’t work
>
> ommand postChildrenAndParents pChildrenField
>    set the itemdelimiter to tab
>    --put item 2 of target into pID # doesn’t work but his does:
>
>    put item 2 of value( the selectedline of the target) into pID
>
>    put getChildren(pID) into tChildren
>

It will work, but the two statements above aren't equivalent. "Target" 
returns the entire content of the field. Since you want to capture only 
the selected line, you'd need to isolate that as in the second example.

Using "target" it would be something like this:

put item 2 of line (the hilitedline of the target) of target into pID

Since that's more convoluted than the second method, there's probably no 
reason to bother changing it.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list