xsharp.eu • ALIAS()
Page 1 of 1

ALIAS()

Posted: Fri Feb 21, 2020 3:44 pm
by kevclark64
In Foxpro ALIAS() always returns an uppercase string regardless of the case of the USE statement:

Code: Select all

USE "c:vfp9myfile.dbf"
? ALIAS()    // prints "MYFILE"
In X# ALIAS() returns whatever case is in the USE statement:

Code: Select all

USE "c:vfp9myfile.dbf"
? ALIAS()   // prints "myfile"
use "c:vfp9MYFILE.DBF"
? ALIAS()   // prints "MYFILE"
use "c:vfp9MyFile.DBF"
? ALIAS()   // prints "MyFile"
This could cause a problem if someone has a line such as "IF ALIAS()='MYFILE'"

ALIAS()

Posted: Sat Feb 22, 2020 11:44 am
by robert
Kevin,

This is also the case in VO and Vulcan, so I guess you have found a bug.

Robert