I tried a li'l test stack with the example given, and assumed that to obtain the returned value would be the same principle as for functions. So the first handler is mine, and the getProp is the User Guide example:
Code: Select all
on mouseUp pMouseBtnNo
put myCustomProperty() into field "B"
end mouseUp
getprop myCustomProperty
return the vscroll of field "Field" + 20
end myCustomPropertyWhile on this subject, I don't understand setProp at all; for instance, the example given:
Code: Select all
setProp myCustomProperty newSetting
set the hilite of me to true
pass myCustomProperty
end myCustomPropertyCode: Select all
on mouseUp
set the hilite of me to true
end mouseUpSimilarly with some simple functions: the User Guide example:
Code: Select all
function currentDay
return item 1 of the long date
end currentDayCode: Select all
on mouseDown
put item 1 of the long date into field "Field"
end mouseDownAny light shed within this foggy room appreciated thank you!

