Subject Re: Subforms
From Vasile BUZA <hsctm@rdslink.ro>
Date Wed, 13 Aug 2014 12:48:04 +0300
Newsgroups dbase.getting-started

Hi Duncan

I think the correct syntax is:

class TestFormform (parentObj,title) of SUBFORM (parentObj,title)

When you open the subformat:

    f = this.form        // parent form assuming that you open the subform
by clicking a button
    set procedure to TestForm.wfm additive
    x = new TestFormform( f, "Mypopup" )

    x.EntryField1.value := 'new value'       // you can set default value to
actual data
    x.top    := 10                                         // you can
position the subform in another place
    x.left    := 20                                         // etc. ...

    x.open()

Vasile BUZA


"Duncan"  a scris în mesaj news:eIn8OAttPHA.2008@ip-0AF2DFD4...

I have created a three page form with a datalink for displaying / updating
the rowset information. I am trying to create a subform containing the
rowset's memo field (for making notes) that can be invoked through a popup
menu on any of the three pages. I used the form designer to create the
subform and followed the manual's instructions to change:-

class TestFormForm of FORM

to

class TestFormform( Testpopup, "Mypopup") of SUBFORM( Testpopup, "Mypopup")

i.e. Testpopup is the 3 page parent form

but i continually get syntax errors on the above statement which I have
amended to exclude the parent name without any success.
I would welcome any advice to work around the problem.