Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Sorting problem.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sorting problem.

 Post Reply Post Reply
Author
Message
shrame View Drop Down
Newbie
Newbie


Joined: 11 October 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote shrame Quote  Post ReplyReply Direct Link To This Post Topic: Sorting problem.
    Posted: 11 October 2006 at 1:37pm
Any reason why this would not let me sort it?


Dim rp As ReportColumn
Dim Record As ReportRecord
Dim Item As ReportRecordItem
Dim i As Long

Set rp = ReportControl1.Columns.Add(0, "Date", 200, True)

For i = 0 To 1000
    Set Record = ReportControl1.Records.Add
    Set Item = Record.AddItem("")
      Item.Caption = i
Next i

ReportControl1.Populate
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2006 at 4:19pm
Hi,

Correct would be to use "Item.Value = i"
Problem is that in a way you implemented it, all items have same empty values.

--
WBR,
Serge
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.