Duplicate Identifier LoadString

Monkey Targets Forums/Desktop/Duplicate Identifier LoadString

teremochek(Posted 2012) [#1]
When I compile, gives a
"Duplicate Identifier 'LoadString' found in module 'os' and module 'app'."
What's wrong?


marksibly(Posted 2012) [#2]
Hi,

Both the mojo and os modules declare a LoadString function.

You need to use mojo.LoadString or os.LoadString depending on which one you want.

Or, you can do something like: Alias LoadString=mojo.LoadString after your program's imports.


teremochek(Posted 2012) [#3]
thanks