Focal Point
[SOLVED] getVersion()

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/278103163

February 04, 2010, 12:01 PM
<José Andrés Vargas Aguilar>
[SOLVED] getVersion()
Hello, I'm currently developing reports for a client who works with v7.11 but my fex's and other clients are currently implemented with v7.67.

After a few arrengements everything works just fine in the two versions but the display changes a litle bit. Things that look nice in v7.67 look bad on v7.11 and vyceversa.

So my question is: does it exist an environment variable that tells what version is the fex running on? Or perhaps a function that retrieves the number of version of Wwbfocus?

By getting the version I will be able to make branches and pick the style that corresponds to each version.

Thanks a lot!

This message has been edited. Last edited by: <José Andrés Vargas Aguilar>,
February 04, 2010, 12:33 PM
njsden
Hello José Andrés,

This topic might help -> WebFOCUS Version display

Regards,
- Neftali.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
February 04, 2010, 04:00 PM
<José Andrés Vargas Aguilar>
Yes, this works, but FOCREL varies not only amongst releases but also amongst patchs.

-TYPE &FOCREL

So I'd need to isolate the second half of the string which contains the release number. Something like a SUBSTR, how can I do that?

Thanks!
February 04, 2010, 04:26 PM
Dan Satchell
Take a look at the EDIT function.


WebFOCUS 7.7.05
April 27, 2010, 06:27 PM
<José Andrés Vargas Aguilar>
This worked perfectly!
Thanks!