Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unexplainable 'Unknown member ' error
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00700071
Message ID:
00700077
Views:
9
Hi!

Well, just look to extra object you added in your code line (in bold font). You look in debuger for ThisForm.oCallinhObject.Cusref and say it is correct. In code you use ThisForm.oCallingObject.ObjMemVar.Cusref



>Hi.
>I have a form, ehich is being called from another form
>On the Called Form, a command button has following code:
>Sele SDA
>Seek ThisForm.oCallingObject.ObjMemVar.Cusref &&(Seeks a Customer No.)
>
>This gives an error: Unknown member OBJMEMVAR. just first time it is used. If I ignore the error, when it goes into the same code a second time, its fine.
>
>I'v also put a Wait Window commnad before the seek, and I can see the data in ThisForm.oCallinhObject.Cusref fine
>
>In the debugger, ThisForm.oCallinhObject.Cusref shows the correct data also.
>
>
>I dont understand how . both the wait window and debugger is showing the data ok, but it still comes up with the error. I've also tried doing a MyVal = ThisForm.oCallinhObject.Cusref (which workds fine) and then doing a seek on the MyVal, but it still comes up with an Unknown Member ObjMemvar on the Seek Line, even though at this stage the Seek is looking at a completelely different variable .
>
>Anybody got any ideas on how this is happening.
>
>Regards,
>
>Gerard
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform