This code isn't set to work yet with the positioning, just trying to get it to copy the button.
put empty into field "results"
put 1 into xLoop
repeat until revQueryIsAtEnd(dtEndUse)
local cEndUse, btnEndUse
put revDatabaseColumnNamed(dtEndUse, "end_use") into cEndUse
put cEndUse & return after field "results"
# copy the btnCopy button
put button "btnCopy" into btnEndUse
set the location of btnEndUse to 50, 50+y
set the name of btnEndUse to "btn1_" & xLoop
set the label of btnEndUse to cEndUse
revMoveToNextRecord dtEndUse
put xLoop + 1 into xLoop
put y + 50 into y
end repeat
Thanks!
EDIT: I am a complete beginner, first project in livecode
