Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
PowerLanguage & EasyLanguage. How to get the platform name with code?
How would it be possible to get the platform name or any kind of distinctive name reference with PowerLanguage and EasyLanguage? to in that way run some different syntax depending on the platform is running, because PowerLanguage and EasyLanguage syntax are not always exactly the same.
I've seen you can get the app id with aiApplicationType but it would not be the solution for this situation.
Thank you
Can you help answer these questions from other members on NexusFi?
I am not aware of such a reserved word. For simplicity and for maximizing the capabilities of the languages it might make sense to simply keep the codes separated.
And you should know @futurenow that if anyone here would know this, it is @ABCTG - one of the most knowledgeable Easy Language programmer here, in my opinion.
@futurenow, even if you would come up with a way to identify the platform (which you probably could do by finding one reserved word that only exists in one platform and for which you would have to create a function in the other platform, so you could distinguish by the return values) the obstacle that you will not be able to overcome is the compiler in the platforms. If your code contains reserved words that the compiler does not recognize it will throw an error and you will not be able to compile your code. This is what would happen in both platforms, if you have code that is exclusive to the other platform only.