Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't figure out why?
Message
From
14/09/2006 02:45:12
 
 
To
14/09/2006 02:29:30
Czarina Joyce Villanueva
Innovision Systems International
Manila, Philippines
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01153598
Message ID:
01153601
Views:
25
>The C#.Net code below works:
>
>private void pckCustomer_ItemSelected(object sender, mmPickerItemSelectedEventArgs e)
>{
>   this.oOrder.GetOrdersByCustomerID("Select Orders.OrderID, Orders.OrderDate, Orders.RequiredDate, Orders.ShippedDate, Orders.ShipName, Customers.ContactName From Orders, Customers Where Orders.CustomerID = Customers.CustomerID And Orders.CustomerID Like '%"+this.pckCustomer.Text+"%'", 1 );
>}
>
>
>But if the code is put in multiple lines like below, it gives me an error:
>
>private void pckCustomer_ItemSelected(object sender, mmPickerItemSelectedEventArgs e)
>{
>    this.oOrder.GetOrdersByCustomerID("Select Orders.OrderID,
>        Orders.OrderDate, Orders.RequiredDate,
>        Orders.ShippedDate, Orders.ShipName,
>        Customers.ContactName From Orders, Customers
>        Where Orders.CustomerID = Customers.CustomerID And
>        Orders.CustomerID Like '%"+this.pckCustomer.Text+"%'", 1 );
>}
>
>What's wrong here? It seems that it does not recognize multiple lines...

You're trying to continue a string literal over several lines (the content between the first set of "" quotes).

See http://forums.devx.com/showthread.php?t=146516 , message 4.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform