Sign in to follow this  
Followers 0
HenryDara

VB "Dim" not compiling

3 posts in this topic

The following is VB code for "On Open" of a display.

For some reason I get an error - "Error 2612: Invalid function or missing := in assignment expression [Script, SpurStatus_On_Open: Text]" (referring to the line that starts with "Dim")

In a duplicate project the same exact code is happy as a clam, but for some reason this project wont validate, and the terms do not highlight correctly in the VB editor.

Dim i <---should be green, but its black

For i = 0 TO 5
View.AssignIndirect HL_ManualPB.Element("CMD_L").index(i).Name,  H_ManualPB.Element("CMD_L").index(i).Name
View.AssignIndirect HL_ManualPB.Element("CMD_R").index(i).Name,  H_ManualPB.Element("CMD_R").index(i).Name
Next <---should be green, but its black

 

Share this post


Link to post
Share on other sites

 

Without ALL the code, who knows. Maybe you defined "I" somewhere else.

 

Share this post


Link to post
Share on other sites

A variable that is declared at module level, outside https://hitthegrade.com/ any procedure, is a member variable or field. Member variables are in scope throughout their class, structure, or module. A variable that is declared at procedure level is a local variable. Local variables are in scope only within their procedure or block.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0