I have simple code, below
IF RIGHT(ThisPathName, 1) <> "\" THEN ThisPathName = ThisPathName + "\" END IF ThisFilePath = ThisPathName + ThisFileName MsgBox (ThisFilePath) OpenFile = GetFolderItem(ThisFilePath, FolderItem.PathTypeAbsolute) IF OpenFIle <> Nil THEN Pic = Picture.Open(OpenFile) Pic = ResizeToFit(Pic,ImageWell1.WIdth, ImageWell1.Height) ImageWell1.Image = Pic ELSE MsgBox ("Bad File Name") END IF
I have confirmed through MsgBox that the path and file name are correct, but the GetFolderItem returns Nil. The code trips the MsgBox at the end - Bad File Name. Nothing seems to work. Any help would be appreciated.