>Hi all!
>
>One short question - what is equal to the vfp function
EMPTY() in VB.Net?
>
>If I use
Textbox1.Text.Equals(String.Empty) 0 would have to be checked separately.
>
>Thanks for help!
There are many ways. And you should decide what's empty. String.Empty is 0 length string not like VFP's empty(). To get something like (actually better) than VFP's empty() you'd use Trim():
C#:
// 0 length string
bool isempty = (Textbox1.Text.Length == 0);
bool isempty = (Textbox1.Text == String.Empty);
bool isempty = (Textbox1.Text.CompareTo(String.Empty) == 0);
// check removing white space
bool isempty = (Textbox1.Text.Trim() == String.Empty);
bool isempty = (Textbox1.Text.Trim().CompareTo(String.Empty) == 0);
Cetin