Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't modify or run a form

Status
Not open for further replies.

suha

Programmer
Aug 19, 2000
41
JO
hello

Yesterday i sent you my question but not as a member, so i want to repeat my question again for further help.

I had a form running with no problem, but when i modify the form and change the properties of a date field, as i wrongly wrote at the format properties the word of 'date',
i closed the form and tried to test it but no way to run it or correct what i've done, always give me error no. 2005 and return me to the command entry.

Please if you can help because this form took a lot of work and it consists of 4 pages of pageframe with a lot of data.

I'm waiting for your response asap.

Best Regards,
suha
 
Well, everybody in this forum is willing to help everybody regardless if you're a member or not :).
Regarding your problem, I don't know error #2005. I'm using VFP3 only. What's yours?
Can you give the details of that error message?

 
thanks for your attention
I'm using vfp6 and the error message is:'Error loading file-record number 5.<or one of its members>. Parent class name is invalid.'
And i click the help button of this message it's as follow:

&quot;Error with &quot; name &quot; - &quot; property &quot;: &quot; error &quot; (Error 2005)
You have attempted to set a property to an illegal value through the language. &quot;


 
Did you move or delete class libraries? If so, put them back and see if that fixes it. If not, it looks like you might have to hack the form file:

* first, back up the subject form

[tt]use MyForm.scx
goto 5
browse[/tt]

Now look at the Class and Classloc Memo fields for record 5 (should be the current record). Are the values in these two fields proper? IOW, does the Class shown there actually exist in the class library specified in Classloc?

If not, then you'll need to reset these to the defaults. I believe you need to completely blank out the Classloc (CTRL+A, [DEL]), and set the Class to the appropriate base class for that type of object (you can look in Baseclass and Objname to determine what this thing is).
 
Actually, the form itself is a table with extension .SCX. If you really can't fix it, I woul suggest you try opening it as a table using the USE command, the field name are quite self explanatory though most of them are memo fields. The format field that you set incorrectly i think is stored in the field property. Just locate the proper record (if you still remember the object name, the locate it using the objname field). Of course, ou would want to make a backup of your form before you do this. Remeber to close the table before you run the form again. HTH.
 
thanks for your help, i tried what you told me to do ,it
didn't work, but i appreciate this new information for the next time i will know what to do from the beginning.

maybe the form itself is corrupted as i tried to open 'myform.sct' by modi comm myform.sct and corrected the error i thought it caused the problem.


suha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top