Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

Commented Issue: vfp2c32 - apostrophes in file names [33689]

$
0
0
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 **

Hi,

thanks for the bugreport.

It's fixed in the new version 2.0.0.12 i'm gonna upload right now ...


Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>