Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following gmSL routine moves a declaration to the top of a function.  This may be required when a translated method uses a variable before it is initialized. (See C# Compiler Error CS0165). 

Info

Beginning with gmBasic v40.75 is now a Migrate MoveToTop attribute for moving declarations to the top.  See gmplMigrateStatement.


Note, a simpler temporary workaround is to translate the method to a "Conditional Stub" using Refactor/Remove with migStatus="Conditional".

...