CatFelix
2017-07-29T07:46:32Z
Hi,

I have just started with iGrid today and must admit to being somewhat confused.
A simple thing like setting the current cell, I have not been able to achieve.

I have a statement:

uExpEntryDlg.iGrid1.SetCurCell(2, 3)

I would have thought that this is enough to specify that cell(2,3) is required to be the current cell. But iGrid seems to want something assigned via an "= ". What is it that I have to assign? If I try to set a value, I am told that "assignment to constant is not permitted".

I am obviously missing something about the fundamental concept. Is there any documentation that describes the fundamentals or some simple source code that illustrates the fundamental usage of the grid.

Any help is gratefully received.
Igor/10Tec
2017-07-31T12:14:44Z
As we know, you are using iGrid ActiveX in MS Office VBA. In this case the correct syntax should be:

uExpEntryDlg.iGrid1.SetCurCell 2, 3

In fact, this a question regarding programming in VBA but not iGrid. You can find out more about topic in the Internet. Read, for instance, the following thread at StackOverflow:

What are the rules governing usage of brackets in VBA function calls? 
Users browsing this topic