<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163960</link>
    <title>MATLAB Central Newsreader - GUI question</title>
    <description>Feed for thread: GUI question</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 18 Feb 2008 01:54:03 -0500</pubDate>
      <title>GUI question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163960#415678</link>
      <author>Phil Au</author>
      <description>Hi All,&lt;br&gt;
&lt;br&gt;
I got an question about my GUI matlab,&lt;br&gt;
&lt;br&gt;
If I got two axes, if I want to one of the axes to display &lt;br&gt;
an img, how can I write it in code, pls,&lt;br&gt;
&lt;br&gt;
many thx...&lt;br&gt;
&lt;br&gt;
And also when I use the filesparts function, when I press &lt;br&gt;
the cancelbutton&lt;br&gt;
&lt;br&gt;
I get this error~~ &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
?? Error using ==&amp;gt; fileparts at 17&lt;br&gt;
Input must be a row vector of characters.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; appl&amp;gt;browse_Callback at 143&lt;br&gt;
[pathstr,name,ext,versn] = fileparts(get&lt;br&gt;
(handles.inputimg_ed,'string'));&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; gui_mainfcn at 96&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;feval(varargin{:});&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; appl at 42&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
&lt;br&gt;
??? Error while evaluating uicontrol Callback&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Can you pls help me to solve it?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Here's my code&lt;br&gt;
&lt;br&gt;
function browse_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to browse (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version &lt;br&gt;
of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see &lt;br&gt;
GUIDATA)&lt;br&gt;
[pathstr,name,ext,versn] = fileparts(get&lt;br&gt;
(handles.inputimg_ed,'string'));&lt;br&gt;
if  ~isempty(pathstr),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pathstr = [pathstr '&amp;#092;'];&lt;br&gt;
end&lt;br&gt;
try&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[file,path] = uigetfile([pathstr '*.jpg'],'Select an &lt;br&gt;
image');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(handles.inputimg_ed,'string',[path file]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;info = imfinfo([path file]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(handles.width_ed,'string',info.Width);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(handles.height_ed,'string',info.Height);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;imshow([path file]);&lt;br&gt;
catch&lt;br&gt;
end&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 18 Feb 2008 04:42:03 -0500</pubDate>
      <title>Re: GUI question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163960#415692</link>
      <author>Vihang Patil</author>
      <description>"Phil Au" &amp;lt;philipawt@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fpaofr$ru7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi All,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I got an question about my GUI matlab,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I got two axes, if I want to one of the axes to display &lt;br&gt;
&amp;gt; an img, how can I write it in code, pls,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; many thx...&lt;br&gt;
&amp;gt; &lt;br&gt;
Answer to your first question&lt;br&gt;
&lt;br&gt;
axes(handles.axes1); %assuming axes1 is the name of the&lt;br&gt;
first %axes&lt;br&gt;
imshow(yourimage);&lt;br&gt;
&lt;br&gt;
HTH&lt;br&gt;
VIhang&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 18 Feb 2008 04:52:56 -0500</pubDate>
      <title>Re: GUI question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163960#415693</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fpaofr$ru7$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Phil Au &amp;lt;philipawt@gmail.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;And also when I use the filesparts function, when I press &lt;br&gt;
&amp;gt;the cancelbutton&lt;br&gt;
&lt;br&gt;
&amp;gt;I get this error~~ &lt;br&gt;
&lt;br&gt;
&amp;gt;?? Error using ==&amp;gt; fileparts at 17&lt;br&gt;
&amp;gt;Input must be a row vector of characters.&lt;br&gt;
&lt;br&gt;
&amp;gt;Here's my code&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;gt;    [file,path] = uigetfile([pathstr '*.jpg'],'Select an image');&lt;br&gt;
&lt;br&gt;
What is the documented output result when you cancel a uigetfile&lt;br&gt;
dialog?&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;"Why does he stagger his mind with the mathematics of the sky?&lt;br&gt;
&amp;nbsp;&amp;nbsp;Once the question mark has arisen in the human brain the answer must&lt;br&gt;
&amp;nbsp;&amp;nbsp;be found, if it takes a hundred years. A thousand years."&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-- Walter Reisch&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 18 Feb 2008 10:49:02 -0500</pubDate>
      <title>Re: GUI question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163960#415740</link>
      <author>Phil Au</author>
      <description>Hi Walter,&lt;br&gt;
&lt;br&gt;
Thx for your reply first.&lt;br&gt;
It was used in the Browse button, whem i press the button, &lt;br&gt;
it was supposed to select an image file and if I selected a &lt;br&gt;
file, it will display the path of the file in an edit box,&lt;br&gt;
and diplay the details of the img and the actual img. &lt;br&gt;
&lt;br&gt;
But I i press the cancel button, the edit box which used to &lt;br&gt;
display the path of the file is disappeareed and when I &lt;br&gt;
press the button again, I got this error..&lt;br&gt;
&lt;br&gt;
Thanks for your time and help&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;And also when I use the filesparts function, when I &lt;br&gt;
press &lt;br&gt;
&amp;gt; &amp;gt;the cancelbutton&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;I get this error~~ &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;?? Error using ==&amp;gt; fileparts at 17&lt;br&gt;
&amp;gt; &amp;gt;Input must be a row vector of characters.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;Here's my code&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;    [file,path] = uigetfile([pathstr '*.jpg'],'Select an &lt;br&gt;
image');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What is the documented output result when you cancel a &lt;br&gt;
uigetfile&lt;br&gt;
&amp;gt; dialog?&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt;   "Why does he stagger his mind with the mathematics of &lt;br&gt;
the sky?&lt;br&gt;
&amp;gt;   Once the question mark has arisen in the human brain &lt;br&gt;
the answer must&lt;br&gt;
&amp;gt;   be found, if it takes a hundred years. A thousand &lt;br&gt;
years."&lt;br&gt;
&amp;gt;                                               -- Walter &lt;br&gt;
Reisch&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 18 Feb 2008 11:29:28 -0500</pubDate>
      <title>Re: GUI question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163960#415746</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fpbnqu$2in$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Phil Au &amp;lt;philipawt@gmail.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;Thx for your reply first.&lt;br&gt;
&amp;gt;It was used in the Browse button, whem i press the button, &lt;br&gt;
&amp;gt;it was supposed to select an image file and if I selected a &lt;br&gt;
&amp;gt;file, it will display the path of the file in an edit box,&lt;br&gt;
&amp;gt;and diplay the details of the img and the actual img. &lt;br&gt;
&lt;br&gt;
&amp;gt;But I i press the cancel button, the edit box which used to &lt;br&gt;
&amp;gt;display the path of the file is disappeareed and when I &lt;br&gt;
&amp;gt;press the button again, I got this error..&lt;br&gt;
&lt;br&gt;
You use fileparts -first- and then you use uigetfile. So any&lt;br&gt;
problem with uigetfile will not be reflected until the -next-&lt;br&gt;
time you call the function.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;    [file,path] = uigetfile([pathstr '*.jpg'],'Select an &lt;br&gt;
&amp;gt;image');&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; What is the documented output result when you cancel a &lt;br&gt;
&amp;gt;uigetfile&lt;br&gt;
&amp;gt;&amp;gt; dialog?&lt;br&gt;
&lt;br&gt;
To answer my hint to you myself: when the user cancels&lt;br&gt;
uigetfile, the return value is the -number- 0, not&lt;br&gt;
a string. You then store that 0 in a handle, and the next&lt;br&gt;
call around, you pull the numeric 0 out and try to use it&lt;br&gt;
in fileparts, which promptly complains because you have not&lt;br&gt;
passed fileparts a string.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;"Beware of bugs in the above code; I have only proved it correct,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;not tried it."                                    -- Donald Knuth&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 18 Feb 2008 14:19:54 -0500</pubDate>
      <title>Re: GUI question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163960#415776</link>
      <author>ImageAnalyst</author>
      <description>On Feb 18, 6:29=A0am, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson)&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; In article &amp;lt;fpbnqu$2i...@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Phil Au &amp;lt;philip...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;Thx for your reply first.&lt;br&gt;
&amp;gt; &amp;gt;It was used in the Browse button, whem i press the button,&lt;br&gt;
&amp;gt; &amp;gt;it was supposed to select an image file and if I selected a&lt;br&gt;
&amp;gt; &amp;gt;file, it will display the path of the file in an edit box,&lt;br&gt;
&amp;gt; &amp;gt;and diplay the details of the img and the actual img.&lt;br&gt;
&amp;gt; &amp;gt;But I i press the cancel button, the edit box which used to&lt;br&gt;
&amp;gt; &amp;gt;display the path of the file is disappeareed and when I&lt;br&gt;
&amp;gt; &amp;gt;press the button again, I got this error..&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You use fileparts -first- and then you use uigetfile. So any&lt;br&gt;
&amp;gt; problem with uigetfile will not be reflected until the -next-&lt;br&gt;
&amp;gt; time you call the function.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; =A0 =A0[file,path] =3D uigetfile([pathstr '*.jpg'],'Select an&lt;br&gt;
&amp;gt; &amp;gt;image');&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; What is the documented output result when you cancel a&lt;br&gt;
&amp;gt; &amp;gt;uigetfile&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; dialog?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; To answer my hint to you myself: when the user cancels&lt;br&gt;
&amp;gt; uigetfile, the return value is the -number- 0, not&lt;br&gt;
&amp;gt; a string. You then store that 0 in a handle, and the next&lt;br&gt;
&amp;gt; call around, you pull the numeric 0 out and try to use it&lt;br&gt;
&amp;gt; in fileparts, which promptly complains because you have not&lt;br&gt;
&amp;gt; passed fileparts a string.&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; =A0 =A0"Beware of bugs in the above code; I have only proved it correct,&lt;br&gt;
&amp;gt; =A0 =A0not tried it." =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =&lt;br&gt;
=A0 =A0 =A0 =A0 =A0-- Donald Knuth&lt;br&gt;
&lt;br&gt;
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=&lt;br&gt;
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D&lt;br&gt;
It's issues like this that make me wish MATLAB were a strongly typed&lt;br&gt;
language like most other programming languages, where you were&lt;br&gt;
required to declare variables of a certain type before you could use&lt;br&gt;
them, and they maintained that type every time you used them.  I know&lt;br&gt;
you give up some flexibility in being able to write fast, sloppy code&lt;br&gt;
but other languages agree that that "advantage" does not outweigh the&lt;br&gt;
potential problems it causes.&lt;br&gt;
Regards,&lt;br&gt;
ImageAnalyst&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 19 Feb 2008 01:38:02 -0500</pubDate>
      <title>Re: GUI question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163960#415921</link>
      <author>Phil Au</author>
      <description>Hi Walter, &lt;br&gt;
Thx again for the reply, I edited the code as below, now i &lt;br&gt;
dont have  the error, but i can't use the browse button if &lt;br&gt;
I press the cancel, Do you know how can I still use the &lt;br&gt;
browse button even I press the cancel button&lt;br&gt;
&lt;br&gt;
try&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[pathstr,name,ext,versn] = fileparts(get&lt;br&gt;
(handles.inputimg_ed,'string'));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if  ~isempty(pathstr),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pathstr = [pathstr '&amp;#092;'];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[pathstr,name,ext,versn] = fileparts(get&lt;br&gt;
(handles.inputimg_ed,'string'));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[file,path] = uigetfile([pathstr '*.jpg'],'Select an &lt;br&gt;
image');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if isequal(pathstr,0)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(handles.inputimg_ed,'string','cancelled');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(handles.inputimg_ed,'string',[path file]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;info = imfinfo([path file]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(handles.width_ed,'string',info.Width);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(handles.height_ed,'string',info.Height);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;imshow([path file]);&lt;br&gt;
catch&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
btw, do you know why I got an Warning: Single line Edit &lt;br&gt;
Controls can not have multi-line text.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in &lt;br&gt;
message &amp;lt;fpbq6o$4e2$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; In article &amp;lt;fpbnqu$2in$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; Phil Au &amp;lt;philipawt@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;Thx for your reply first.&lt;br&gt;
&amp;gt; &amp;gt;It was used in the Browse button, whem i press the &lt;br&gt;
button, &lt;br&gt;
&amp;gt; &amp;gt;it was supposed to select an image file and if I &lt;br&gt;
selected a &lt;br&gt;
&amp;gt; &amp;gt;file, it will display the path of the file in an edit &lt;br&gt;
box,&lt;br&gt;
&amp;gt; &amp;gt;and diplay the details of the img and the actual img. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;But I i press the cancel button, the edit box which used &lt;br&gt;
to &lt;br&gt;
&amp;gt; &amp;gt;display the path of the file is disappeareed and when I &lt;br&gt;
&amp;gt; &amp;gt;press the button again, I got this error..&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You use fileparts -first- and then you use uigetfile. So &lt;br&gt;
any&lt;br&gt;
&amp;gt; problem with uigetfile will not be reflected until the -&lt;br&gt;
next-&lt;br&gt;
&amp;gt; time you call the function.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;    [file,path] = uigetfile([pathstr '*.jpg'],'Select &lt;br&gt;
an &lt;br&gt;
&amp;gt; &amp;gt;image');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; What is the documented output result when you cancel a &lt;br&gt;
&amp;gt; &amp;gt;uigetfile&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; dialog?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; To answer my hint to you myself: when the user cancels&lt;br&gt;
&amp;gt; uigetfile, the return value is the -number- 0, not&lt;br&gt;
&amp;gt; a string. You then store that 0 in a handle, and the next&lt;br&gt;
&amp;gt; call around, you pull the numeric 0 out and try to use it&lt;br&gt;
&amp;gt; in fileparts, which promptly complains because you have &lt;br&gt;
not&lt;br&gt;
&amp;gt; passed fileparts a string.&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt;    "Beware of bugs in the above code; I have only proved &lt;br&gt;
it correct,&lt;br&gt;
&amp;gt;    not tried it."                                    -- &lt;br&gt;
Donald Knuth&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
