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

RemoveRecordEx

 Post Reply Post Reply
Author
Message
nvierros View Drop Down
Groupie
Groupie
Avatar

Joined: 02 July 2006
Location: Australia
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote nvierros Quote  Post ReplyReply Direct Link To This Post Topic: RemoveRecordEx
    Posted: 16 January 2008 at 7:52pm
Hey guys,

Small issue i need help with.

Im using RemoveRecordEx to delete items from the report control. Im trying to do this with multiple selections but it does not seem to work correctly.

Here is my code:


dim i as long
for i = 0 to reportcontrol.selectedrows.count - 1
reportcontrol.RemoveRecordEx reportcontrol.selectedrows(i).record
next

This works ok for the first record, but im assuming because the reportcontrol updates its internals, selectedrows will change.

Is it possible to do this without using the .populate method as i want to keep the view state???

Thanks in advance

Nick

Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2008 at 2:43pm

Start from bottom to Top.

 
for i = reportcontrol.selectedrows.count - 1   To   0        Step -1
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.172 seconds.