Export program Error

i want to copy robot codes to another project,when i export the robot code ,it reports error as below.
can anyone help on this,thanks !

Seems to be KUKA.Sim? That error refers to the “Assign” statement you have in Main, apparently you can’t use those if you want to export.

yes, it’s KUKA .Sim, so “Assign” statement not supported in KUKA.sim right? and how about the project created in visual components can be opened correctly in KUKA.sim?