Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: David Kurniawan
  Where is David Kurniawan?
 Semarang
 Indonesia
 David Kurniawan
 Tags
Subject: RE: Formset can't Entry
Thread ID: 345096 Message ID: 345122 # Views: 59 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Friday, May 18, 2012 3:47:23 PM         
   


> Dear Experts
> I have a problem with formset
>
> 2nd form
>
>
> 1st form
>
>
>
> why the 2nd form can't access from 1st form
> the command button "\<Tambah" was
>
> WITH thisformset
> .editing = .f.
> .deleteming = .f.
> .kertas2kosong()
> .form2.text4.enabled = .t.
> .form2.text5.enabled = .t.
> .form2.text6.enabled = .f.
> .form2.command1.enabled = .t.
> .form2.command2.enabled = .t.
> .form2.text8.enabled = .f.
> .form2.olecontrol1.enabled = .t.
> vBatal = " "
> .form2.label13.caption = IIF(vBatal="Y","BATAL","AKTIF")
> .form2.label13.enabled =.t.
> .form2.label13.visible =.t.
> IF vBatal="Y"
> .button2dead()
> ELSE
> .button2life()
> ENDIF
> .combo1()
> SELECT * FROM ps_brg_d WHERE kodetrx="00" INTO CURSOR ps_brg_d1 ORDER BY nourutq
> .form1.enabled =.f.
> .form2.enabled =.t.
> .form2.show
> .form2.text4.setfocus()
> ENDWITH
>
> may i know what wrong is its ????
>
>
> DAVID KURNIAWAN
>
> mamamia


Hi,
What kind of error are you getting? I ask this as I do not know what you are doing in your custom function calls or object changes.

What I really want to know is if you take the one line of code that is your select statement and place it behind a newly created command button with nothing in it except in the click event:
SELECT * FROM ps_brg_d WHERE kodetrx="00" INTO CURSOR ps_brg_d1 ORDER BY
SELECT ps_brg_d1
BROWSE

When you load the formset and load form2 and click the new button do you see your data in a browse window? Assuming ps_brg_d is a cursor in the formset's data environment.

Pete "the IceMan", from the Great White North of Canada.
www.marathongriffincomputers.com

ENTIRE THREAD

Formset can't Entry Posted by David Kurniawan @ 5/18/2012 6:58:38 AM
RE: Formset can't Entry Posted by Pete Sass @ 5/18/2012 3:47:23 PM
RE: Formset can't Entry Posted by David Kurniawan @ 5/19/2012 4:39:13 AM
RE: Formset can't Entry Posted by Stefanus Eddy @ 5/19/2012 9:23:43 AM
RE: Formset can't Entry Posted by David Kurniawan @ 5/21/2012 6:53:29 AM
RE: Formset can't Entry Posted by Pete Sass @ 5/19/2012 7:54:33 PM
RE: Formset can't Entry Posted by David Kurniawan @ 5/21/2012 8:54:29 AM
RE: Formset can't Entry Posted by Pete Sass @ 5/22/2012 4:38:00 PM
RE: Formset can't Entry Posted by David Kurniawan @ 5/23/2012 10:31:03 AM
RE: Formset can't Entry Posted by Tom Saddul @ 5/22/2012 6:34:29 AM
RE: Formset can't Entry Posted by David Kurniawan @ 5/22/2012 8:23:55 AM
RE: Formset can't Entry Posted by Tom Saddul @ 5/22/2012 9:49:40 AM
RE: Formset can't Entry Posted by David Kurniawan @ 5/23/2012 5:33:26 AM
RE: Formset can't Entry Posted by Tom Saddul @ 5/24/2012 6:44:41 AM