finding if string of edit text is empty

  • Follow


what string does an edit text have when left empty...
how can this empty string be manipulated to use in a if loop(i.e. i want to set a default case for empty string returned.. but how do i recognize the empty string)
0
Reply aashay 4/5/2010 12:42:04 PM

On Apr 5, 8:42=A0am, "aashay vanarase" <aash...@gmail.com> wrote:
> what string does an edit text have when left empty...
> how can this empty string be manipulated to use in a if loop(i.e. i want =
to set a default case for empty string returned.. but how do i recognize th=
e empty string)

----------------------------------------------------
There is an isempty() function.
0
Reply ImageAnalyst 4/5/2010 12:44:06 PM


"aashay vanarase" <aashayv@gmail.com> wrote in message <hpclqs$o40$1@fred.mathworks.com>...
> what string does an edit text have when left empty...
> how can this empty string be manipulated to use in a if loop(i.e. i want to set a default case for empty string returned.. but how do i recognize the empty string)

a hint:
- it is an empty CHAR...

     s='';
     whos s;
     numel(s)
     size(s)

us
0
Reply us 4/5/2010 12:48:03 PM

2 Replies
1251 Views

(page loaded in 0.002 seconds)

Similiar Articles:













7/23/2012 5:27:47 PM


Reply: