RE: VFP6: Syntax error - now can't modify form?

Author: Bill Arnold, bill@wjarnold.com

Posted: 1999-08-21 at 23:24:42

Hi Ed,

I wound up restoring a backup and redoing changes, but I think I saved the

bad form and will try this on it - plus I'll be sure to save the procedure

for future reference. This is the first time I've gotten bitten by this type

of problem, but I don't think it will be the last (I like to experiment

<g>).

Actually, I did use and browse the .scx for the form, but it was just a maze

of memos, and peeking into several, I didn't see the expression I entered,

which I thought would be key to finding the problem, but now I see which one

I should have looked for.

Thanks much!

Bill

-----Original Message-----

From: profox@leafe.com [mailto:profox@leafe.com]On Behalf Of Ed Leafe

Sent: Saturday, August 21, 1999 11:49 PM

To: Multiple recipients of ProFox

Subject: Re: VFP6: Syntax error - now can't modify form?

On 8/21/99 10:06 PM, Bill Arnold supposedly said:

>When I tested the form, evidentially, I have a syntax error in the

>expression. Now when I try to edit the form to fix the problem, I'm getting

>"syntax error" when I attempt to modify the form in project manager, and it

>wouldn't let me back into the form.

>Looks like a bug in VFP. Has anyone else hit this? More importantly, the

>form has some changes since last backup - does anyone know how to get past

>this?

Open the SCX as a table, and then remove the problem caption

property from the form entry. The code you need would be:

USE MyForm.SCX

BROWSE FOR baseclass = "form"

Now open the memo field named "Properties", and remove the line starting

with "Caption=". The issue USE to close the SCX, and then do COMPILE FORM

MyForm to make sure everything is updated. You should now be able to MODI

FORM MyForm without a problem, assuming that the Caption setting was the

cause.

___/

/

__/

/

____/

Ed Leafe

http://leafe.com/

©1999 Bill Arnold, bill@wjarnold.com