Here is a basic question I am not sure of (after decades of LC coding) and can't pin down in teh Dictionary

If you execute "put the selectedChunk into X" then (assume a valid selection) X contains an expression of the form "char <start> to <end> of field <fieldNumber>"

If I want to check that the selection is in one of a number of fields on my stack, say called "Address", is the following conditional correct?

if word 7 of X = the layer of fld "Address" then -- the selection is in the address field

In other words, is the <fieldNumber> returned by selectedChunk the same as the layer property of objects OR is it an index to the number of fields on that card (two different things if you have objects other than fields on the card)

Any one know for sure?


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to