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:
00018817
Views:
34
>>
>> 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')
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform