how to init static structured variable ?
Posted: Sat May 09, 2020 9:19 am
Hello
How can i init a static structured variable easly ?
i would like A variable is init with A\x=-1 and A\y=-1
I use this method but it's not very clean
do you have another way ?
How can i init a static structured variable easly ?
i would like A variable is init with A\x=-1 and A\y=-1
Code: Select all
Procedure test()
Static A.point
Debug A\x
Debug A\y
EndProcedure

Code: Select all
Procedure test()
Static Init.b=#false
Static A.point
if Init=#false
Init=#true
A\x=-1
A\y=-1
Endif
Debug A\x
Debug A\y
EndProcedure