Head (before)

Set global variables - Loop — SIMUL8 Community Forum

Head (after)

Ask the SIMUL8 Community

Content (before)

Set global variables - Loop

SeMSeM
Created at
in Community support

Hi,
I needto set multiple globale variables within a Loop in Visual Logic, but sadly I can't find a way how to do this within a loop and a variable name with a counter.

Example:
gbl_number_1
gbl_number_2
gbl_number_3
...
Code:
LOOP1 >>> gblCount >>> 50
Set "gbl_number_"+gblCount ss_Test[2,gblCount]

Simul8 doesn't recognize the " "gbl_number_"+gblCount " as a global variable.
Does anyone has an idea how to solve this?

The current plan is to import multiple values from excel in the gbl_numbers, which are partially connected to activities (e.g. startup-level, process time, batching out size, Level of queue when a reorder should placed,...)

Br,
Sebastian



Tagged:

Comments

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Attach file
Attach image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file

Content (after)