Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. , wwwxxx vim, mysql closing table and opening table, 800c5000, setgid operation not permitted, pciehp: acpi_pciehprm on IBM, WWWXXX.DBF, 078274121, info0a ip, should prodicers of software_based services be held liable or not liable for economic injuries

Links

XODOX
Impressum

#1: Passing dataset by reference between forms, what is the best approach?

Posted on 2008-04-22 04:16:42 by Gabe Garza

Hello there,

I am wanting to pass my datasets by reference to other forms. As soon as I
do that I have to reset any binding sources by setting their datasource
property to the original datasource.

I also find that I cannot then bind directly to my dataset without a binding
source, so I have to duplicated all my binding sources on my second form.

Is this normal or am I doing something wrong? How do you guys normally pass
large amounts of data between forms?

This is my function I run to pass the reference in (I didn't overload new
for some reason which I dont recall now)
Public Sub assignReference(ByRef theDs As dataset)

Me.ds = theDs

Me.serviceOrderBindingSource.DataSource = Me.ds

End Sub


Thank you kindly for anyones thoughts
John Sheppard

Report this message