Print Page | Close Window

Report Control: Deleting an item from rec

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1761
Printed Date: 17 November 2024 at 3:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control: Deleting an item from rec
Posted By: gshawn
Subject: Report Control: Deleting an item from rec
Date Posted: 07 February 2005 at 3:45pm

Hi,

How do I go about deleting a single item from a record? For example, if I have this: 

    Set Record = RecordControl.Records.Add

        Record.AddItem "first"

        Record.AddItem "second"

        Record.AddItem "third"

        Record.AddItem "fourth"

 

How do I remove the “second” and “third” items?

 

I can see a .RemoveAt method in the Records collection, but there is no equivalent in the ReportRecord collection.

 

Help?

 




Replies:
Posted By: gaudetm
Date Posted: 16 December 2006 at 11:57am
how about this?
 
record.recordreportitem(position_to_remove).caption = vbnullstring
record.recordreportitem(position_to_remove).value = vbnullstring
reportcontrol.populate
 
 



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