Skip to Content
author's profile photo
Former Member

Getting data from Matrix - Delphi 8/SDK 6.5

Hi,

I want to fix following problem. I'd like to get value from ItemCode cell in document object. When I used this example code:

oForm := App.Forms.GetFormByTypeAndCount(141,1);

oMatrix := mFrm.Items.Item('38').Specific;

oEdit := oMatrix.Columns.Item(1).Cells.Item(pval.Row).Specific;

I can't get any value to my variable oEdit - programme is stopping.

How to get data from cell number 1 (first) in document line?

The same problem is for cell number 3 but I haven't any problem with for example cell number 11.

I'm looking forward to your help.

Regards

Tomasz

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Jan 26, 2005 at 10:37 AM

    in this place:

    oEdit := oMatrix.Columns.Item('1').Cells.Item(pval.Row).Specific;

    Column number one has UniqueID = '1 ' not '1' (after 1 is space).

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Tomasz, other option is this:

      oEdit := oMatrix.Columns.Item(TObject(1)).Cells.Item(pval.Row).Specific;

      regards.

      Francisco.