Print Page | Close Window

Sorting problem.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=5268
Printed Date: 19 September 2024 at 1:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sorting problem.
Posted By: shrame
Subject: Sorting problem.
Date 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



Replies:
Posted By: sserge
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net