This works but I still don't get it. Using Use h: $localdrive_H will do exactly the same. Why make it more complex than it is?
I doubled the $ in the Right function to stop kix from resolving it to the actual value. In your example it resolves the variable to the actual value giving you an e (from \\fileserver\share).

 Code:
$localdrive_H = "\\Fileserver\share"
$drive = Right("$$localdrive_H", 1) 
$NewVariable = "$localdrive_" + $drive
Use h: $NewVariable 


Edited by Mart (2012-05-24 11:42 AM)
Edit Reason: typo
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.