Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form works fine as a form, but not as a class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00018477
Message ID:
00018821
Views:
39
> > >> > >> Hi guys, > >> I made a form, it works fine when I use it with > >> DO FORM my_form WITH parameter1,parameter2,etc... > >> then I tried to create a class based in my_form with > >> Save as class... > >> and when I try to run the form with: > >> oMy_form=CREATEOBJECT('my_form',parameter1,parameter2..) > >> I receive an error: > >> Error object "object_name" not found, but the object > >> exist, if I delete the object from the form then it > >> tells me the same error but with the next object in the form , that is, > >> Error "object_name2" not found. > >> That happens in the "GetGridRef" method of the wizard txtbtns class > that > >> comes with 3.0, if this a 'BUG' or what?. Any sugestion would be > >> apreciated. > >> =THIS.Thanks('in advance') > > > >What version of VFP and wizards do you have? On ftp.microsoft.com you > >can find updated versions of wizard. There were a lot of bugs in origin > >version. I think it's vfp30wiz.exe or so, and also setupwiz.exe. > >Do you have VFP 3.0 or 3.0b? A lot of things solved in 3.0b. > >hth > >Dezider > >-- > Thanks Dezider, > I have 3.0, I just received 3.0b but haven't installed yet, and > also I made a mistake while explaining the error, where it says > "Error object_name1 not found", it should say "Error unkfnown member > object_name1", for now what I did was to create an application > instead of a class, and call the application with > DO my_form.app WITH parameter1,parameter2,... > But still I don't understand what was wrong, I am going to > try your sugestion. > =THIS.thanks('again') to be exact, updated versions of report, wuery, form and pivot table wizards are in one file and setup wizard in second. I'm not really sure about names ( I just deleted them today ... :( ) , but you can find them either on web page www.microsoft.com/VFoxSupport/ after selecting tab Download sample, driver... or at ftp.microsoft.com/softlib/mslfiles check for the file mslfiles.txt where is complete list of these files with little descriptions. Should be in foftlib dir. ( I was there many times to see what they fixed and what they missed...) hth Dezider --
There were three worst disasters in the history of human
race in 20-th century:
1, Hiroshima 44
2, Tchernobyl 86
3, Windows 95
Previous
Reply
Map
View

Click here to load this message in the networking platform