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:profox-bounces@leafe.com] On Behalf Of Sytze de Boer Sent: 26 January 2016 21:35 To: profox profox@leafe.com 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]