Skip to Content

writing to matrix cell

Hi,

I want to write some data a matrix cell. I write the same using the following code :

tempMatrix = oform1.Items.Item("50").Specific

tempMatrix.Columns.Item("V_0").Cells.Item(tempMatrix.RowCount).Specific.value = "A001"

I am not able to write the above data to the matrix cell.

Can anybody help ??

Thanks.....

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jun 28, 2006 at 05:23 AM

    Hi Rowdy,

    You are right. The code you mentioned is also not working, we tried the same..

    No datasources are bounded to the matrix...I just want to simply write some values to the matrix cells through code... How can I do the same ?

    Also when I manually write some values to the matrix cells, when I go to the next cell, the previously written value is automatically erased....What can be the reason for the same ??

    Thanks again.....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 27, 2006 at 01:30 PM

    Try this:

    tempMatrix = oform1.Items.Item("50").Specific
    oEditText = tempMatrix.Columns.Item("V_0").Cells.Item(tempMatrix.RowCount).Specific
    oEditText.value = "A001"

    Possibly this also won't work, so please give us a little more information. If I look at the name of the column I suggest it's a user defined Matrix on a user form? Do they have datasources connected? What exact error do you get? You also want to read /thread/117232 [original link is broken].

    Hope it helps,

    Rowdy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 28, 2006 at 06:07 AM

    Hi Nick,

    thanks.....you solved the problem.....

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.