Also for filename and subdir Resolved
Posted: Sun Mar 15, 2020 5:27 pm
I have a file image on
cPathMask:="C:\Work\Prg\WinBeach\bitmaps\servizi\pattino.png"
the image is pattino.png
I wish save on record (dbf) only bitmaps\servizi\pattino.png
I saw also filename.prg and not found a solution
Function test()
Local cIniFile := cFilePath( GetModuleFileName( GetInstance() ) ) + "Test.ini"
Local cExePath := cFilePath( GetModuleFileName( GetInstance() ) )
Local cSerPath := GetIni( cIniFile, "Config", "Ser", cExePath+"bitmaps"+"\servizi\")
Local cPathMask:="C:\Work\Prg\WinBeach\bitmaps\servizi\pattino.png"
Local only_Image := cFileNoPath( cPathMask )
? only_Image
nSTART := RAT( "\", only_Image )
?SUBSTR(cPathMask,1,nSTART-1)
any solution please
cPathMask:="C:\Work\Prg\WinBeach\bitmaps\servizi\pattino.png"
the image is pattino.png
I wish save on record (dbf) only bitmaps\servizi\pattino.png
I saw also filename.prg and not found a solution
Function test()
Local cIniFile := cFilePath( GetModuleFileName( GetInstance() ) ) + "Test.ini"
Local cExePath := cFilePath( GetModuleFileName( GetInstance() ) )
Local cSerPath := GetIni( cIniFile, "Config", "Ser", cExePath+"bitmaps"+"\servizi\")
Local cPathMask:="C:\Work\Prg\WinBeach\bitmaps\servizi\pattino.png"
Local only_Image := cFileNoPath( cPathMask )
? only_Image
nSTART := RAT( "\", only_Image )
?SUBSTR(cPathMask,1,nSTART-1)
any solution please