次の方法で共有


FORCEEXT( ) Function

Returns a string with the old file name extension replaced by a new extension.

FORCEEXT(cFileName, cExtension)

Parameters

  • cFileName
    Specifies the file name (with or without a path or extension), which will get a new extension.

  • cExtension
    Specifies the new extension (without a period) for cFileName.

Return Value

Character

See Also

Reference

ADDBS( ) Function

DEFAULTEXT( ) Function

FILE( ) Function

FORCEPATH( ) Function

JUSTDRIVE( ) Function

JUSTEXT( ) Function

JUSTFNAME( ) Function

JUSTPATH( ) Function

JUSTSTEM( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)