when I load a bitmaps the function getdir save on cDir all directory
for sample
c:\work\prg\codici\bitmaps\xxx.bmp
I wish only .\bitmaps\xxx.bmp
because if I insert the exe to another folder or pc it not found the bitmaps
any idea ?
#include "fivewin.ch"
function main()
local cFile:="c:\work\prg\codici\bitmaps\xxx.bm"
msgInfo( relativePath( cFile ) )
return nil
Function RelativePath( cFile )
local cPath, cRelPath, cTemp
cPath:= cFilePath(cFile)
cTemp:= left(cPath,len(cPath)-1)
cRelPath:= "." + right(cPath, len(cPath) + 1 - rat("\",cTemp) )
return cRelPath
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 84 guests