AlexT
  • AlexT
  • Member Topic Starter
2018-11-29T01:03:35Z
Hello

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

Something like

igrid.getVersion ?
Igor/10Tec
2018-11-29T08:22:49Z
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

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

with this one:

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.
AlexT
  • AlexT
  • Member Topic Starter
2018-11-29T08:26:16Z
Originally Posted by: Igor/10Tec 

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
2018-11-29T13:26:57Z
Will it be enough to show the actual version of iGrid in a message box displayed when you call the ShowAboutBox method?
AlexT
  • AlexT
  • Member Topic Starter
2018-11-29T13:42:07Z
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
2018-11-29T15:34:12Z
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
  • AlexT
  • Member Topic Starter
2018-11-29T15:53:14Z
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
2018-11-29T16:29:55Z
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
  • AlexT
  • Member Topic Starter
2018-11-29T21:04:50Z
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
2018-11-30T07:44:53Z
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
  • AlexT
  • Member Topic Starter
2018-11-30T08:37:04Z
Sorry - yes that would be perfect 🙂
Igor/10Tec
2020-10-19T06:11:02Z
The Version property was added to iGrid 7.5 released on Oct-15, 2020.
AlexT
  • AlexT
  • Member Topic Starter
2020-10-19T06:54:47Z
Thanks for listening 🙂