PDA

View Full Version : Global variable named "i"


Bill Chan
04-21-2009, 03:48 AM
Hi,

When a global variable with the name "i" is defined, objects from the library cannot be dragged out and the objects in the model cannot be connected together using A-key or S-key. Although "i" is not a good name for global variable, the user may expect a warning message.

Thanks.
Bill Chan

Carsten Seehafer
04-21-2009, 07:40 AM
i is a command of flexsim. If you define i in global variables you overload this function and the original i will not work!

i<no parentheses>

Description: For developer use. This command is used only in event functions. It is used to reference the object that was passed to the value of 0 is) command as the involved object. Example:string involvedname = getname(i);

This sets involvedname to the name of the object that was passed to value of 0 is) as the involved object. (copy from command documentation)