Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
LiveCode won't stop moaning and complaining and grumbling that it can't find the background in line 6 of this code. I have checked and re-checked each object is a group all by itself, each group is named the same as each object was originally named.What maybe are the reasons for saying that it can not find a backgound? I realise it is looking for a background because it sees a group.
command initializeMines
repeat with i = 1 to 10
put "mines" & i into gMinesBegin
put 150 + (i-1)*100 into gMinesX
put 50 into gMinesY
set the loc of grp gMinesBegin to gMinesX, gMinesY
end repeat
end initializeMines
command initializeMines
repeat with i = 1 to 10
put "mines" & i into gMinesBegin
put 150 + (i-1)*100 into gMinesX
put 50 into gMinesY
if there is NOT a grp gMinesBegin then
answer "No group:" && gMinesBegin
exit to top
end if
set the loc of grp gMinesBegin to gMinesX, gMinesY
end repeat
end initializeMines
I know I know, griping is well and truly over now, I've grown up But maybe I should have posted a smiley after first line as it really was not a gripe, just my long winded oddish way to say I don't know why....trying to bring smiles to my often laborious and tiresome questioning, I know you all have feelings as well...