Welcome! Log In Create A New Profile

Advanced

Getting the actual version number to show

Posted by mixgh 
Getting the actual version number to show
February 24, 2021 09:16PM
Hello,

Using WB24. I need the exeinfo command that will give me the version as circled in the image



Using exeinfo(exeversion) gives me 24.0.155.3 which is the current version of WB24 itself.

Thanks and regards
Re: Getting the actual version number to show
February 24, 2021 09:18PM
Since the image doesn't show above, I have attached it here.

thanks once again

issah
Attachments:
open | download - webdev24.PNG (103.8 KB)
Argus
Re: Getting the actual version number to show
February 24, 2021 10:49PM
it is exeinfo, but with the option to get the version from a WDL (see help)... and the wdl file is projectname.wdl
Re: Getting the actual version number to show
February 25, 2021 12:01AM
Hi Argus

Looking through the help for WB26 I can't see any option to get the version from a WDL. I've tried exeinfo(exeversion, myprojectname.wdl) and it doesn't work. Do you remember what the option for a WDL is?

Rgds
Paul
pao
Re: Getting the actual version number to show
February 25, 2021 03:47PM
Try with the ComponentInfo function.
[doc.windev.com]

Regards

Paulo Oliveira



Edited 1 time(s). Last edit at 02/25/2021 06:20PM by pao.
Re: Getting the actual version number to show
February 26, 2021 07:41AM
Good idea Paulo, but doesn't work as the component shares the project context.
pao
Re: Getting the actual version number to show
February 26, 2021 09:36AM
I have tested ot in windev 22 (the only one i have available right now) and it works with this code:
Program version: "+ExeInfo(exeVersion)+" WDL Version: "+ComponentInfo("", ciVersion, Replace(Upper(ExeInfo(exeName)),".EXE",".WDL"))

Regards

Paulo Oliveira



Edited 1 time(s). Last edit at 02/26/2021 09:51AM by pao.
Re: Getting the actual version number to show
February 27, 2021 08:26AM
Thanks for that. Unfortunately doesn't work in V26.

Rgds
Paul
Argus
Re: Getting the actual version number to show
March 01, 2021 11:01AM
I checked, as the memory is the first thing to go and the correct syntax is

ComponentInfo("",ciVersion,"WDLName.wdl")

Potential problems:
- will not work in test mode as there is no generated wdl in that mode (at least till you publish at least once).. You can do a false publication to generate the wdl
- NAME of the wdl (may not be the name of the project, check in the directories)
- FOLDER of the wdl (between awp and non awp modes, the notion of 'currentdirectory' may be different), so you MAY need to prefix the wdl name with ..\ or something like that

except for that, works fine in all versions
Re: Getting the actual version number to show
March 02, 2021 12:38AM
Thanks Argus. I went back and checked the code and now have it working.

Rgds
Paul
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: