Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unexplainable 'Unknown member ' error
Message
From
13/09/2002 12:42:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00700071
Message ID:
00700242
Views:
11
Gerard,
I never use 'set filter'. The behaviour you hit is one of the reasons for I never use it - before I posted a code portion similarly showing weird results with set filter when expression was a dynamically changing one (date in that case, near midnight).
However if I ever would do I would keep the expression variables in scope (maybe oApp.MyTable.MyFilter or alike) or set literal values rather than references.
Cetin

>Cetin, I think I have got to the bottom of it
>I did have a filter on the file (set filter to cusref = thisform.objMemvar.Cusref) which is set in the calling screen.
>
>In the called screen,presumably this filter is still on but it cannot find ThisForm.. now because the ThisForm is now the calling Parent.
>
>(Maybe the reason it did not error out on a Seek 'abc' was because the seek got an EOF and it did not trigger the filter ??
>
>Anyway, this poses another problem. Is there a way of maintaining a filter across called screens (I have set up called screens so they share the DE)
>
>regards,
>
>Gerard
>
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform