I am running 4.5.4(2309) Beta, and when I try to use getVarValue with "%Dir%",
"%File%" or "%Name%" as arguments, I am always getting the full filename. 


    Dim Ed, ListFile, FileName
    Dim FullName
    Set Ed = newEditor()
    With Ed
       .assignActiveEditor()
       FullName = .fileName
       FileName = getVarValue("%File%",FullName)
       ListFile = getVarValue("%Dir%",FullName)
       echo("File: " & FileName)
       echo("Name: " & ListFile)
    End With


If I do not specify a 2nd parameter for getVarValue, I get an empty string back.
Am I doing something wrong, or is the function working incorrectly?

Thanks,
-Chris

-- 
<http://forum.pspad.com/read.php?2,45194,45194>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem