Description: depot cannot be resolved or is not a field

141 Views Asked by At

I am new with anylogic an I didn't know how to solve the problem. Please help me.

Screenshot

1

There are 1 best solutions below

0
Jaco-Ben Vosloo On

The error simply means that there is no variable called depot in main.

I would suggest using the code auto-complete feature, alt+space on Mac and ctrl+space on Windows. Then you will be able to see if the variable you are trying to access is available?

Example of code auto-complete functionality

The first question would be: Do you have a variable or populate on main called depots? Or maybe you called it something else. It is hard to know without seeing your main, or having the main agent expanded fully in the project explorer window 9(See my screenshot)

If you do it will be available for you to use in the vehicle agent