Bedanya VB6 dengan VB.NET adalah orientasi object, Bila di VB6 dengan dengan modifier public, dengan DataGrid1.DataSource = from1.Recordset bisa di akses, tetapi bila anda menggunakan VB.NET, rubah menjadi
dgn C# dengan MDI form, mohon di convert ke vb.net crDB.SetDataSource = ((Form1)this.MdiParent).dataSet.Tables["table1"]; Form1 di awal di antara () adalah casting Semoga berhasil --- Roniawan Yahya <[EMAIL PROTECTED]> wrote: > Maksudnya casting terlebih dahulu itu apa ya? > > error bukan pada statement crystal reportnya, sebab > jika aku menggunakan > Dataset local di form2 statement tersebut berjalan > normal. > Yang menjadi masalah adalah mengambil dataset yang > ada di form1 yang sudah > saya declare dengan public. > > kalu di VB6 kan tinggal panggil aja dengan statement > : form1.RS dari > form2 asalkan RS yang di form1 aku declare public. > > thx > ronny > > > > ----- Original Message ----- > From: "Gunawan doang" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, September 08, 2005 09:53 > Subject: Re: [Programmer-VB] VB.NET : Mengakses > Dataset > > > > anda harus casting terlebih sebelum ada masukan ke > > datasource. > > > > --- Roniawan Yahya <[EMAIL PROTECTED]> wrote: > > > >> dear all, > >> > >> saya punya masalah mengakses dataset yang ada di > >> form1 dari form2, gimana caranya ya ? > >> > >> Ex: > >> di Form1 > >> public lcDS as new dataset > >> ... > >> ... > >> DA.Fill (DS,"table1") > >> > >> > >> di Form2 > >> dim frm as new form1 > >> dim crDB as CRAXDRT.DATABASE > >> > >> crDB=crReport.Database > >> crDB.SetDataSource > >> form1.lcDS.Tables("table1") <- disini Error > >> terjadi, ErrDesc = Not Implemented > >> > >> Kenapa ya? > >> > >> > >> Thx > >> Ronny > >> > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > > > Untuk keluar dari millis ini, kirim email kosong > ke: > > [EMAIL PROTECTED] > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/k7folB/TM --------------------------------------------------------------------~-> Untuk keluar dari millis ini, kirim email kosong ke: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Programmer-VB/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
