Discussion:
alias changed
(too old to reply)
Wilson Thomas
2004-11-22 07:25:26 UTC
Permalink
Dear friends,

I am using VFP 6. When I issue command "SET DATE TO ymd" selected alias
changed.

Eg:
USE records
USE employee

SELECT employee
ALIAS() && returns "Employee"

SET DATE TO ymd

ALIAS() && returns "records"

Any way to solve this?

Wilson
Fred Taylor
2004-11-23 00:55:01 UTC
Permalink
Must be something else in your code that's changing it. I don't see that.
--
Fred
Microsoft Visual FoxPro MVP
Post by Wilson Thomas
Dear friends,
I am using VFP 6. When I issue command "SET DATE TO ymd" selected alias
changed.
USE records
USE employee
SELECT employee
ALIAS() && returns "Employee"
SET DATE TO ymd
ALIAS() && returns "records"
Any way to solve this?
Wilson
Rick Bean
2004-11-23 15:29:32 UTC
Permalink
Wilson,
You've obviously modified you code to simply it for posting. Unfortunately you may have eliminated the problem, because other than the fact that ALIAS() like you've written it won't (can't) return anything, there isn't anything that would produce these results.

Can you post your actual code? Are you using service pack 5 with VFP 6.0? Is there any ON ERROR in effect? Is this code in a .PRG file, or is it in a form's method (or class)?

Rick
Post by Wilson Thomas
Dear friends,
I am using VFP 6. When I issue command "SET DATE TO ymd" selected alias
changed.
USE records
USE employee
SELECT employee
ALIAS() && returns "Employee"
SET DATE TO ymd
ALIAS() && returns "records"
Any way to solve this?
Wilson
Loading...