View Single Post
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,502

Old December 30th, 2017, 06:06 PM
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?

Last edited by Duggan; December 31st, 2017 at 07:32 AM.
Duggan is offline   #1 Reply With Quote