Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beginner q
Message
 
To
31/07/2003 12:44:52
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00815425
Message ID:
00815765
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform