Page 1 of 1

Help, 4DScript error keeps occuring

Posted: Friday 17 January, 2014 - 11:46
by Jordivank
Hello,

I am building a model to simulate some sealocks (school project).

Everytime I run my simulation an error keeps popping up.
4DScipt:error at '':='':Acces violation at address 00000000. Read of address 00000000

Does anyone know how I can fix the error? I have checked all my atoms (about 50).
The only thing that has a := combination is the trigger on exit. Which I put on the SetLabel, this is standard code so I did not add anything myself besides the labelname and value.

Examples of my trigger on exit:
SetLabel([Zeeschip 0-900], i) := 1
SetLabel([Binnenschip 330], i) := 11

Hope someone can be of help to me.

Best Regards,
Jordi

Re: Help, 4DScript error keeps occuring

Posted: Friday 17 January, 2014 - 12:16
by MatthijsJongboer
Hello Jordi,

Have a close look at the required syntax.
Either use Label(....) := or Setlabel(...).
What you are trying to do is change the result of setlabel (instead of changing the label).
This results in an error.

Re: Help, 4DScript error keeps occuring

Posted: Friday 17 January, 2014 - 12:38
by Jordivank
Thank you for you quick reaction,

It works fine now.