ALIAS()

This forum is meant for questions about the Visual FoxPro Language support in X#.

Post Reply
User avatar
kevclark64
Posts: 127
Joined: Thu Aug 15, 2019 7:30 pm
Location: USA

ALIAS()

Post 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'"
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

ALIAS()

Post by robert »

Kevin,

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

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply