How-to-initialize-variable-only-once and Display in Title

I refer to this discussion

and write a program that initializes the program only once, but a strange phenomenon occurs. I use Title to display the value of my variable. The value of 1e-10 does appear in the first execution, but I'm sure my program has initialized these StaticVar

my Title code is :

StrTitle = StrFormat(" %g %g %g %g %g %g => %g %g %g %g %g", OrderState , KeyPrice1 , KeyPrice2 , KeyPrice3, KeyPrice4, KeyPrice5,
KeySign1 , KeySign2 , KeySign3, KeySign4, KeySign5 );

// printf ( "%s\n" , StrTitle ) ;

Title = StrTitle ;


how is it happen

Post ENTIRE code, not one line from it. The error you are making is somewhere else but without seeing the whole thing, we can't tell you where. Please follow this advice: How to ask a good question