|
Home > Archive > Getting Started with dBASE > November 2006 > Opening Child Forms
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Opening Child Forms
|
|
| John Marshall 2006-11-14, 7:15 pm |
|
I have a main form from which a user can open multiple others based on their needs: Configuration, reports, data etry, etc ...
Every single readmodal call works except for one. I have tried everything to make it work, and the only way I can get the form to runis to use the old xBase call "do".
This one DOES work:
set procedure to tipedit.wfo additive
f = new tipeditform()
f.mdi := false
f.readmodal()
This is the one that does not:
set procedure to stafftrn.wfo additive
l = new stafftrnform()
l.mdi := false
l.readmodal()
Any suggestions would be appreciated.
Thanks,
JM
| |
| bigMike 2006-11-15, 12:13 am |
| Are you getting an error msg?
Is the one that doesn't work the last one of the group, or somewhere in the
middle?
bigMike
"John Marshall" <john. marshall@mainstreetp
rinceton.com> wrote in message
news:VXsow$CCHHA.1472@news-server...
>
> I have a main form from which a user can open multiple others based on
> their needs: Configuration, reports, data etry, etc ...
>
> Every single readmodal call works except for one. I have tried everything
> to make it work, and the only way I can get the form to runis to use the
> old xBase call "do".
>
> This one DOES work:
>
> set procedure to tipedit.wfo additive
>
> f = new tipeditform()
> f.mdi := false
> f.readmodal()
>
> This is the one that does not:
>
> set procedure to stafftrn.wfo additive
> l = new stafftrnform()
> l.mdi := false
> l.readmodal()
>
> Any suggestions would be appreciated.
>
> Thanks,
>
> JM
>
| |
| Rick Gearardo 2006-11-15, 7:16 pm |
| Are you sure it's not opening behind another form?
Rick
"John Marshall" <john. marshall@mainstreetp
rinceton.com> wrote in message
news:VXsow$CCHHA.1472@news-server...
>
> I have a main form from which a user can open multiple others based on
> their needs: Configuration, reports, data etry, etc ...
>
> Every single readmodal call works except for one. I have tried everything
> to make it work, and the only way I can get the form to runis to use the
> old xBase call "do".
>
> This one DOES work:
>
> set procedure to tipedit.wfo additive
>
> f = new tipeditform()
> f.mdi := false
> f.readmodal()
>
> This is the one that does not:
>
> set procedure to stafftrn.wfo additive
> l = new stafftrnform()
> l.mdi := false
> l.readmodal()
>
> Any suggestions would be appreciated.
>
> Thanks,
>
> JM
>
| |
| John Marshall 2006-11-15, 7:16 pm |
|
It's actually the first. I have tried moving it, and even renaming the wfm. It works fine using DO, and all the others set up exactly the same all work perfectly.
JM
bigMike Wrote:
> Are you getting an error msg?
> Is the one that doesn't work the last one of the group, or somewhere in the
> middle?
>
> bigMike
>
>
> "John Marshall" <john. marshall@mainstreetp
rinceton.com> wrote in message
> news:VXsow$CCHHA.1472@news-server...
>
>
| |
| John Marshall 2006-11-15, 7:16 pm |
|
I am sure. All the rest are fine.
JM
Rick Gearardo Wrote:
> Are you sure it's not opening behind another form?
>
> Rick
>
> "John Marshall" <john. marshall@mainstreetp
rinceton.com> wrote in message
> news:VXsow$CCHHA.1472@news-server...
>
>
| |
| bigMike 2006-11-15, 7:16 pm |
| No error message?
bigMike
| |
| John Marshall 2006-11-15, 7:16 pm |
| "Class does not exist"
" Stafftrnform::stafft
rnform"
JM
John Marshall Wrote:
>
> It's actually the first. I have tried moving it, and even renaming the wfm. It works fine using DO, and all the others set up exactly the same all work perfectly.
>
> JM
>
> bigMike Wrote:
>
>
| |
| John Marshall 2006-11-15, 7:16 pm |
|
"Class does not exist"
" Stafftrnform::stafft
rnform"
bigMike Wrote:
> No error message?
>
> bigMike
>
>
| |
|
| > I have a main form from which a user can open multiple others based on
> their needs: Configuration, reports, data etry, etc ...
>
> Every single readmodal call works except for one. I have tried everything
> to make it work, and the only way I can get the form to runis to use the
> old xBase call "do".
>
> This one DOES work:
>
> set procedure to tipedit.wfo additive
>
> f = new tipeditform()
> f.mdi := false
> f.readmodal()
>
> This is the one that does not:
>
> set procedure to stafftrn.wfo additive
> l = new stafftrnform()
> l.mdi := false
> l.readmodal()
-------------------
Open the .wfm file in the code editor and check for the class name to be
stafftrnform. I suspect that it is not that class name. Either change the
class name or change the name you use to open the form.
Make sure you recompile the .wfm as well since you are using Set Procedure
to stafftrn.WFO.
|
|
|
|
|