GetFilePart

FileSystem ››
Parent Previous Next

GetFilePart

Синтаксис

Function GetFilePart(ByRef sPath As String) As String

Описание

Получает имя файла с расширением файла. Функция реализована с учетом того, что слеши в Windows и Linux разной направленности.

Параметры

sPath - путь к файлу

Платформы

Windows , Linux

Пример

#Include "window9.bi"
#Ifdef __FB_WIN32__
Dim As String ss= "D:\freebasic\Win32_Macro.bas"
#Else
Dim As String ss= "/home/user/Win32_Macro.bas"
#EndIf
? GetFilePart(ss)
sleep

Результат

Win32_Macro.bas

Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor