Bonnie,
this is the error i was getting
Cannot implicitly convert type 'string' to 'bool'
no idea what it is about but Neils solution worked
Cheers
~M
Mark,
Your code looks fine. What exactly is not working?
~~Bonnie
>hi all,
>i have been tryin to get going into c# for the last day or two in between continuing to develop in vfp. i am trying to get an if statement to work where a controls text value is compared to "" but cannot get it to work.
>any ideas very welcome, i know that this is a silly q but is bugging me and i have to say that i am finding the help quite cumbersome to use, ohh for the ease of use of vfp8!
>
>if (PatientTextBox.Text != "")
> nameNode.InnerText = PatientTextBox.Text;
>else
> nameNode.InnerText = "Mark";
>
>Cheers
>~M
Go raibh maith agat
~M