Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
AlexT  
#1 Posted : Wednesday, November 28, 2018 5:03:35 PM(UTC)
AlexT

Rank: Member

Groups: Registered
Joined: 11/11/2017(UTC)
Posts: 19
Location: Geneva

Thanks: 2 times
Hello

Is there an easy way to return the current version of the iGrid component being instantiated ?

Something like

igrid.getVersion ?
Igor/10Tec  
#2 Posted : Thursday, November 29, 2018 12:22:49 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 997

Thanks: 13 times
Was thanked: 130 time(s) in 130 post(s)
Interesting - never thought about such a property. What is the context in which you would use it? Do you need to know the full version number (major.minor.build) or major/minor is enough? And what is your development environment?

As a long way to do it, I could think about enumerating all libraries loaded into the current process and finding the iGrid OCX among them. Below is a VBforums thread containing a module you can use to enumerate the loaded DLLs:

Getting a list of loaded dlls

It's easy to adjust it to return all loaded OCXs. Just replace the following statement

Code:
If Right$(strProcessName, 4) = ".OCX" Then lstBox.AddItem strProcessName


with this one:

Code:
If Right$(strProcessName, 4) = ".DLL" Then lstBox.AddItem strProcessName


Perhaps, there is an easy way to do what you need. Try to ask on VBForums or StackOverflow.

From our side, we can think about adding a property returning the iGrid version in the future updates of the control. Just explain us how you want to us it.

Edited by user Thursday, November 29, 2018 12:23:50 AM(UTC)  | Reason: Not specified

AlexT  
#3 Posted : Thursday, November 29, 2018 12:26:16 AM(UTC)
AlexT

Rank: Member

Groups: Registered
Joined: 11/11/2017(UTC)
Posts: 19
Location: Geneva

Thanks: 2 times
Originally Posted by: Igor/10Tec Go to Quoted Post
From our side, we can think about adding a property returning the iGrid version in the future updates of the control. Just explain us how you want to us it.


Very simple - to make sure that our users have installed the latest version (I have just had a case when the user claimed he did it but in fact did not)
Igor/10Tec  
#4 Posted : Thursday, November 29, 2018 5:26:57 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 997

Thanks: 13 times
Was thanked: 130 time(s) in 130 post(s)
Will it be enough to show the actual version of iGrid in a message box displayed when you call the ShowAboutBox method?
AlexT  
#5 Posted : Thursday, November 29, 2018 5:42:07 AM(UTC)
AlexT

Rank: Member

Groups: Registered
Joined: 11/11/2017(UTC)
Posts: 19
Location: Geneva

Thanks: 2 times
Well I'd rather have a way to programmatically retrieve the version so as to do my own processing - unless you see a reason not to ?
Igor/10Tec  
#6 Posted : Thursday, November 29, 2018 7:34:12 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 997

Thanks: 13 times
Was thanked: 130 time(s) in 130 post(s)
Ok, we can add such a property in future updates. Should it return the version number as string, say, "6.50.0084"?

And what is your development environment? For me, your situation looks strange. If you work in VB6 and add the reference to the iGrid OCX to your project, you definitely already know the iGrid version. Or do you want to determine the iGrid version used in a separate exe module?
AlexT  
#7 Posted : Thursday, November 29, 2018 7:53:14 AM(UTC)
AlexT

Rank: Member

Groups: Registered
Joined: 11/11/2017(UTC)
Posts: 19
Location: Geneva

Thanks: 2 times
Using VBA in Excel and Access.

Building custom apps for third party clients.

They have to keep up to date with the latest build (either for new features or bug fixes). It would be helpfull to be able to check by code, just as you propose
Igor/10Tec  
#8 Posted : Thursday, November 29, 2018 8:29:55 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 997

Thanks: 13 times
Was thanked: 130 time(s) in 130 post(s)
Try to ask this question on VBForums and/or StackOverflow. Perhaps, there is a trick to retrieve the version of the used OCX from that environment.
AlexT  
#9 Posted : Thursday, November 29, 2018 1:04:50 PM(UTC)
AlexT

Rank: Member

Groups: Registered
Joined: 11/11/2017(UTC)
Posts: 19
Location: Geneva

Thanks: 2 times
Sure - but it would be a nice feature to have built in - that was the whole point of my post. And I guess it's a small thing to ask...
Igor/10Tec  
#10 Posted : Thursday, November 29, 2018 11:44:53 PM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 997

Thanks: 13 times
Was thanked: 130 time(s) in 130 post(s)
Ok. You did not answer my question regarding the format of the result. Use the string "major.minor.build" and the format "X.XX.XXXX"?
AlexT  
#11 Posted : Friday, November 30, 2018 12:37:04 AM(UTC)
AlexT

Rank: Member

Groups: Registered
Joined: 11/11/2017(UTC)
Posts: 19
Location: Geneva

Thanks: 2 times
Sorry - yes that would be perfect :)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.