Check version or build

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
ernpchan
Posts: 154
Joined: Thu Aug 13, 2015 7:18 pm
Contact:

Check version or build

Post by ernpchan »

Is there a way to check version or build number? I've done a search for build and version on the doc site and only found a way to check between Pro and Debut.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: Check version or build

Post by Stan »

There is a method AppVersion for the "moho" object. It is available since 9.5, and it returns a string, so if you want to check for some compatibility you may need to convert it to a number.

And if you didn't mean to programmatically check the app version with Lua, then just use the "Help > About..." menu. :)
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
sbtamu
Posts: 1915
Joined: Tue Dec 15, 2009 5:05 am
Location: Texas
Contact:

Re: Check version or build

Post by sbtamu »

Right click on any saved anme file and open with notpad and read the 1st few lines of code. It will tell you what version it is.
Sorry for bad animation

http://www.youtube.com/user/sbtamu
ernpchan
Posts: 154
Joined: Thu Aug 13, 2015 7:18 pm
Contact:

Re: Check version or build

Post by ernpchan »

Thanks Stan! That's perfect.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
Post Reply