rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/xojo
2019-10-21 10:18:17 +02:00

15 lines
412 B
Plaintext

Dim f As FolderItem
f = GetOpenFolderItem(FileTypes1.jpeg) // defined in the File Type Set editor
rem - we should check for nil!
If not f.Exists Then
Beep 'Just for fun
MsgBox("The file " + f.NativePath + "doesn't ""exist.""")
Else // document exists
ImageWell1.image=Picture.Open(f)
End If
if f isa folderitem then
msgbox(f.name)
end if
Exception err As NilObjectException
MsgBox("Invalid pathname!")