Certain library calls from vfp2c32 fail if given a legal file name that contains apostrophes, with a "Function name is missing )": error.
The error occurs on the "AFileAttributesEx" line in the code below, whether or not a Try block is loaded, regardless of the FLL version loaded via set library. Calling AErrorEx in the catch block acts as if no error was created.
````
#INCLUDE vfp2c.h
SET LIBRARY TO vfp2c32t.fll ADDITIVE
? PROGRAM() , DATETIME()
LOCAL lcPath, laFileAttribs(1)
lcPath = "%USERPROFILE%\Documents\Matches to IG's list for CM Letters.xlsx"
? "lcPath = ", lcPath
lcPath = ExpandEnvironmentStrings(lcPath)
? "expanded = ", lcPath
? "FILE(lcPath) = ", FILE(lcPath)
LOCAL oErr as Exception
TRY
? AFileAttributesEx('laFileAttribs', lcPath)
CATCH TO oErr
? 'ERROR in ', oErr.Procedure
? "Line: ", oErr.LineNo, oErr.LineContents
? oErr.Message
ENDTRY
````
Comments: ** Comment from web user: cehlscheid **
The error occurs on the "AFileAttributesEx" line in the code below, whether or not a Try block is loaded, regardless of the FLL version loaded via set library. Calling AErrorEx in the catch block acts as if no error was created.
````
#INCLUDE vfp2c.h
SET LIBRARY TO vfp2c32t.fll ADDITIVE
? PROGRAM() , DATETIME()
LOCAL lcPath, laFileAttribs(1)
lcPath = "%USERPROFILE%\Documents\Matches to IG's list for CM Letters.xlsx"
? "lcPath = ", lcPath
lcPath = ExpandEnvironmentStrings(lcPath)
? "expanded = ", lcPath
? "FILE(lcPath) = ", FILE(lcPath)
LOCAL oErr as Exception
TRY
? AFileAttributesEx('laFileAttribs', lcPath)
CATCH TO oErr
? 'ERROR in ', oErr.Procedure
? "Line: ", oErr.LineNo, oErr.LineContents
? oErr.Message
ENDTRY
````
Comments: ** Comment from web user: cehlscheid **
Hi,
thanks for the bugreport.
It's fixed in the new version 2.0.0.12 i'm gonna upload right now ...