ALIAS()
Posted: Fri Feb 21, 2020 3:44 pm
In Foxpro ALIAS() always returns an uppercase string regardless of the case of the USE statement:
In X# ALIAS() returns whatever case is in the USE statement:
This could cause a problem if someone has a line such as "IF ALIAS()='MYFILE'"
Code: Select all
USE "c:vfp9myfile.dbf"
? ALIAS() // prints "MYFILE"
Code: Select all
USE "c:vfp9myfile.dbf"
? ALIAS() // prints "myfile"
use "c:vfp9MYFILE.DBF"
? ALIAS() // prints "MYFILE"
use "c:vfp9MyFile.DBF"
? ALIAS() // prints "MyFile"