rcathens


vfp9:
When I attempt to open a memo field (double click) while using a browse statement I receive an error message:
Program with error: App_Application .TMRREFRESH.ERROR
Error number: 1734
Line of Code with error : IF TYPE(ˇ°loForm.Parentˇ±)= ˇ°Oˇ± and INLIST(loForm.Parent.WindowType,WindowType_modal,Windowtype_readmodal)

I know it's not the best thing to execute a browse statement from within a program; I have attempted to use the field on a grid and the same thing happens.
I found that Error #1734 means "property not found" but that doesn't help me much.
When I am in design mode it works fine, it is only when I run it as an application either as a app. or exe.. Interestingly, it does work properly on an old computer which has vfp6 on it

I have renamed the file, and reset the properties of the file containing the memo field to no avail.

Thanks



Re: memo field in browse

Aleniko


I use memo fields in browse in VFP9 all the time.
I'm not sure what could be the problem, but just a few ideas:

- Make sure your table is NOT included in your project.
- Try setrting Enginebehavior 80.
- Add a simple prg to your project with just a simple browse command in it and see if you can open the memo field.

All these are long shots, but since I didn't see any other answers here, I thought I'll give you some ideas.

Alen.





Re: memo field in browse

rcathens

Thanks but none of those helped. I don't know if this has anything to do with it but I am constantly finding a reference to fox pro classes being at program files\visual studio\vfp98\wizards instead of vfp9. The only computer it works on is the one that does have visual studio/vfp98 on it .
My program is a work in progress since the early nineties and several foxpro editions so it is hard telling what is going on.





Re: memo field in browse

Naomi Nosonovsky

The error indeed sounds strange, but if I'm allowed to hasard a wild guess, I would suspect that this error is coming from timer's code which gets instantiated by application object.

Also check your ON ERROR routine and try to get stack info using new astackinfo function.





Re: memo field in browse

rcathens

By setting exclusive on before opening the file I no longer got the error! Why the error indication "Windowtype not found" I do not know.




Re: memo field in browse

Naomi Nosonovsky

Perhaps it's not a form, but a toolbar, which produces an error. WindowType is form's property.

Though it is still hard to tell why you're getting the error. Try to search your project for the line giving you an error.





Re: memo field in browse

CetinBasoz

Why don't you check loForm.Parent.windowtype instead of loForm.Parent Your code is assuming loForm.parent is an object and not null and has windowtype property.