Show/Hide Toolbars

XSharp

The constant 'variable' cannot be marked static

 

If a variable is const, it is also static. If you want a const and static variable, just declare that variable as const; if all you want is a static variable, just mark it static.

 

The following sample generates XS0504:

 

 

// XS0504.prg