From: Maxx Chatsko on 15 Jul 2010 16:25 Hello all, I've been playing around with errordlg trying to get multiple lines, but I can't figure it out. I know I've read posts about this before. Suppose I want my errordlg to read the following, with '..Please:' being the last word on the first line in the box. "No data on file. Please: 1. check excel sheet 2. make sure youve entered the correct filename 3. another random troubleshooting fix that probably wont work etc. etc " errordlg=('txt','Error') ... Thanks Maxx
From: Andy on 15 Jul 2010 16:38 "Maxx Chatsko" <chatskom(a)chemimage.com> wrote in message <i1nqr4$r66$1(a)fred.mathworks.com>... > Hello all, > I've been playing around with errordlg trying to get multiple lines, but I can't figure it out. I know I've read posts about this before. Suppose I want my errordlg to read the following, with '..Please:' being the last word on the first line in the box. > "No data on file. Please: > 1. check excel sheet > 2. make sure youve entered the correct filename > 3. another random troubleshooting fix that probably wont work > etc. etc " > > errordlg=('txt','Error') ... > Thanks > Maxx char(10) will give you a newline. So your txt should look something like: ['No data on file. Please:' char(10) '1. ...' char(10) '2. ...']
From: Walter Roberson on 15 Jul 2010 16:48 Maxx Chatsko wrote: > I've been playing around with errordlg trying to get multiple lines, > but I can't figure it out. I know I've read posts about this before. > Suppose I want my errordlg to read the following, with '..Please:' being > the last word on the first line in the box. > "No data on file. Please: > 1. check excel sheet > 2. make sure youve entered the correct filename > 3. another random troubleshooting fix that > probably wont work > etc. etc " > > errordlg=('txt','Error') ... > Thanks Maxx errordlg({'No data on file. Please:', ... '1. check excel sheet', ... '2. make sure you''ve entered the correct filename', ... '3. another random troubleshooting fix that', ... 'probably won''t work', ... 'etc. etc..'}, 'Error');
From: Maxx Chatsko on 15 Jul 2010 16:57 "Andy " <myfakeemailaddress(a)gmail.com> > char(10) will give you a newline. So your txt should look something like: > > ['No data on file. Please:' char(10) '1. ...' char(10) '2. ...'] errordlg['No FCI data on file. Possible fixes:' char(10)... ' 1) Update Excel sheet with latest data' char(10)... ' 2) Check Excel sheet filenames match .tif filenames' char(10)... ' To continue, please uncheck FCI box and try again.','ERROR']; Gives me an unbalanced () error, but my command lines in editor are not red...
From: Andy on 15 Jul 2010 17:09 "Maxx Chatsko" <chatskom(a)chemimage.com> wrote in message <i1nsnc$s1k$1(a)fred.mathworks.com>... > "Andy " <myfakeemailaddress(a)gmail.com> > > > char(10) will give you a newline. So your txt should look something like: > > > > ['No data on file. Please:' char(10) '1. ...' char(10) '2. ...'] > > errordlg['No FCI data on file. Possible fixes:' char(10)... > ' 1) Update Excel sheet with latest data' char(10)... > ' 2) Check Excel sheet filenames match .tif filenames' char(10)... > ' To continue, please uncheck FCI box and try again.','ERROR']; > > Gives me an unbalanced () error, but my command lines in editor are not red... You need parentheses around the brackets. (The brackets are used to concatenate the pieces of the string. The parentheses are needed to identify the arguments for the function call to errordlg.)
|
Next
|
Last
Pages: 1 2 Prev: Symbolics and Anonymous Functions - indefinite number of symbolic Next: 3D generation |