Klaus wrote: ↑Wed Nov 24, 2021 12:56 pm
Yep, same here!? Must be a bug, if you step through that loop in the debugger PLOP shows the correct value.
But the bug is here
put PLOP and return after fld "fPREFFS" of stack "ElsiePreffs"
"and" is a
boolean operator and not a concatenator.
That is why it is returning false, false, etc.
Watch out for arrays in the custom properties.
Try this code: (arrays marked but not resolved)
Code: Select all
on mouseUp
put the customProperties of stack "revpreferences" into tProps
put empty into field "fPREFFS"
repeat for each key aKey in tProps
put tProps[aKey] into PLOP
if PLOP is an array then
put aKey && "is an Array" & return after tCollect
next repeat
end if
put aKey & ":" && PLOP & return after tCollect
end repeat
put tCollect into fld "fPREFFS" of stack "ElsiePreffs"
end mouseUp
Kind regards
Bernd