|
|
Thread Tools | Display Modes |
Senior Member
Volunteer Data File Contributor
Join Date: Nov 2009
Posts: 1,502
|
Code:
var skills as string foreach pick in gizmo from Skill skills &= "!" & eachpick.idString & " & " debug "Add to " & eachpick.idstring nexteach What's the difference? Last edited by Duggan; December 31st, 2017 at 07:32 AM. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You mis-capitalized idstring.
"Reference to undeclared variable" is the compiler's last resort - it means "I really can't figure out what you're trying to do - perhaps you meant to declare a variable earlier, and you're trying to use it here?" |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Nov 2009
Posts: 1,502
|
Thank you. That is helpful. Not directly in my attempt to have the Advances not allow duplicate Skills, but it is helpful in getting me a it further,
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Nov 2009
Posts: 1,502
|
Ah! And I figured out the Advances. I was able to repurpose the eval on AdvBoost to have the already-picked choices not show up. I know someone else had had this issue a while back... they probably already found their own solution.
Code:
<eval value="1" phase="Final" priority="1001"> <![CDATA[ var skills as string foreach pick in gizmo from Skill skills &= " & !Skill." & eachpick.idstring nexteach field[advDynamic].text &= skills ]]> </eval> |
#4 |
|
|