rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/xojo

15 lines
412 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
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!")