Code:
var skills as string
foreach pick in gizmo from Skill
skills &= "!" & eachpick.idString & " & "
debug "Add to " & eachpick.idstring
nexteach
This is code I have within an eval statement. If I comment out the first statement, it works and prints the idstrings. If I don't comment out the first statement, it gives me an error message of "Reference to undeclared variable: 'eachpick'".
What's the difference?