Sytze, It is a bit of a quirk but does work and I never knew setting the alias Id to a character field worked.
I'd put a trace or an assert on the alias you are expecting being changed before you assign the table field somewhere. The thing to look for is a udf somewhere that is not saving the alias used once the udf is entered and obviously resetting it back before it exits. The UDV can be programmatic or in fact a stub of Method code in a method for instance. My guess is that somewhere the alias is being switched. Invariable these are no easy problems to track down!! Best of luck. Dave -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Sytze de Boer Sent: 26 January 2016 21:35 To: profox <[email protected]> Subject: Alias() I do the following in one of my modules sele 909 use (ltable) alias Junk1 Excl If I issue wait window alias(), it returns Junk1 If I use (ltable) alias "Junk1" Excl, it returns Junk1 as well Is this normal? I ask because I have a client who consistently ends up with an error variable code not found when I know for sure the table has a field called Code, and I am trying to confirm the underlying table is indeed Junk1 -- Kind regards, Sytze de Boer --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

