Code: Select all
put 1 into advan
repeat for 5 times
put "Item"&advan into customName
set customName of me to "X"
add 1 to advan
end repeat
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
put 1 into advan
repeat for 5 times
put "Item"&advan into customName
set customName of me to "X"
add 1 to advan
end repeat
Code: Select all
...
put 1 into advan
repeat for 5 times
put "Item" & advan into customName
set THE customName of me to "X"
add 1 to advan
end repeat
...What about this?Da_Elf wrote: The result im looking for is 5 custom properties listed as Item1, Item2, Item3, Item4, Item5
Code: Select all
repeat with J=1 to 5
get "myCP_" & J
set the IT of me to J
end repeatYep, that's what Hermann wrote, but that does not make it officially correct PER SE!Da_Elf wrote:... (i dont use "the" when setting properties but i use it when getting them)...
Code: Select all
-- May behave different with diff LC versions !!
on mouseUp
set customName of me to "I'm your customName."
-- put "Hermann works hard to prepare his next error." into customName
# Bug (?) The line above replaces property customName of me
answer the customName of me # <-- "the" is superfluous but my style
end mouseUp
Code: Select all
on mouseUp
set 7.0 of me to "I dreamt to be 8.0"
end mouseUpCode: Select all
on mouseUp
set the 7.0 of me to "I dreamt to be 8.0"
answer the 7.0 of me
end mouseUpWhich state would you define as "life" ?Craig wrote: ... Schrodinger's cat is hidden in the code ...