Home > Archive > Getting Started with dBASE > July 2005 > Cannot Run Form









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 Cannot Run Form
John E Sherrer

2005-07-21, 3:23 am

Hello Folks
I had created a .cfm form with the form wizard. I used a file system
recommended by the dBase manual, a directery for forms & a directry for
tables.
after I saved the form, I got the error checking window. I pressed the fix
button and discovered that the path for my tables was inncorrect because the
directry was now at the forms directry. So I pressed the Ignor button to
get through the page.
Now I cannot Run the page. I reopened the form from the Project manager to
solve the directry problem, but F2 does not work, nor does the Run from the
File menu.
John


David Ball

2005-07-21, 3:23 am

Hi John

"John E Sherrer" <john1@whitecane.org> wrote in message
news:tSxT6QajFHA.1812@news-server...

> I had created a .cfm form with the form wizard. I used a file system
> recommended by the dBase manual, a directery for forms & a directry for
> tables.


I'm not sure if I interpreted what you wrote correctly, but did you save
your form as a .cfm file? If so, that may cause problems as the .cfm is
supposed to be a custom form template. You should save your form with a .wfm
extension. I looked for an explanation about the .cfm file in Help, but was
unable to find one.

> after I saved the form, I got the error checking window. I pressed the

fix
> button and discovered that the path for my tables was inncorrect because

the
> directry was now at the forms directry. So I pressed the Ignor button to
> get through the page.
> Now I cannot Run the page. I reopened the form from the Project manager

to
> solve the directry problem, but F2 does not work, nor does the Run from

the
> File menu.
> John


I think you will have to solve the directory problem before it will work
properly. If you are comfortable working with code, you can open the .wfm
file in source code (right click in Navigator, Open in Source Editor F12)
and make the correction by hand. Search for any reference to your tables and
put in the correct complete path. Alternately, you may want to consider
using a BDE Alias, so that you don't have to worry about moving stuff around
as much.

Thank you
David Ball
www.ChelseaData.ca


John E Sherrer

2005-07-26, 8:23 pm

Hi David
How do it get the form to Run again & do the error checking again?
John

-server...
Hi John

"John E Sherrer" <john1@whitecane.org> wrote in message
news:tSxT6QajFHA.1812@news-server...

> I had created a .cfm form with the form wizard. I used a file system
> recommended by the dBase manual, a directery for forms & a directry for
> tables.


I'm not sure if I interpreted what you wrote correctly, but did you save
your form as a .cfm file? If so, that may cause problems as the .cfm is
supposed to be a custom form template. You should save your form with a .wfm
extension. I looked for an explanation about the .cfm file in Help, but was
unable to find one.

> after I saved the form, I got the error checking window. I pressed the

fix
> button and discovered that the path for my tables was inncorrect because

the
> directry was now at the forms directry. So I pressed the Ignor button to
> get through the page.
> Now I cannot Run the page. I reopened the form from the Project manager

to
> solve the directry problem, but F2 does not work, nor does the Run from

the
> File menu.
> John


I think you will have to solve the directory problem before it will work
properly. If you are comfortable working with code, you can open the .wfm
file in source code (right click in Navigator, Open in Source Editor F12)
and make the correction by hand. Search for any reference to your tables and
put in the correct complete path. Alternately, you may want to consider
using a BDE Alias, so that you don't have to worry about moving stuff around
as much.

Thank you
David Ball
www.ChelseaData.ca



David Ball

2005-07-26, 8:23 pm

Hi John

"John E Sherrer" <john1@whitecane.org> wrote

> Hi David
> How do it get the form to Run again & do the error checking again?
> John


I had to dust off my form design notes to take a look at this; I mostly do
web stuff these days.

The form that you saved previously as a .cfm file has some code in it that
tells dBASE that it is a custom form, so saving it as a .wfm directly may
not solve the problem. Sorry if I steered you wrong.

There's probably a better way to do this but here's what I did to return the
form to a proper .wfm:
In the navigator:
-right-click on the form
-click on Open in source editor
-the file will open as text in the source code editor
-don't panic if you are not familiar with source code - we're just going to
do one little thing
-the first line of the file will be something like:
class WhateverForm of FORM custom
-remove the word 'custom' so that it looks like:
class WhateverForm of FORM
-click on File Save As...
-enter the filename without exetension in the first box
-change the Save as type to Form (.wfm) in the second box
-click on the Save button
Back in the navigator, highlight on the file you just saved
-you should be able to run your form by double-clicking or using F2.

You should now be able to run or design the form normally, and if there are
other errors, you should be able to deal with them now.

Good luck
David Ball
www.ChelseaData.ca


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com