|
I am sorry but i still get the exception that the XML has this Xmlnode,and when i use the replace method i get the same exception, can some one give and example, a link,even from this site.
Thanks
|
|
|
|
|
|
Tricky Microsoft Devils hiding information in DOCUMENTATION... someone should sue them for that!
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
|
I'm still relatively new to SQL and I was wondering whether there was an easier way to do things.
I need to limit a query based on if a field is like one of three values. I can use "WHERE field in ('list one', 'list two', 'list three')", and I can to "WHERE field like 'list one' or field like 'list two' or field like 'list three'". Is there a way, however, to combine 'in' and 'like' to do something like "WHERE field in like ('list one', 'list two', 'list three') ?
|
|
|
|
|
Drew McGhie wrote: WHERE field in like ('list one', 'list two', 'list three')
That sounds like Valley Girl SQL.
You should post this to the SQL forum, you'll probably get more and faster responses than in the C# forum.
:josh:
My WPF Blog[^]
|
|
|
|
|
Josh Smith wrote: Valley Girl SQL
Sweet
UMM LIKE CREATE PROCEDURE Procedure1
ASIF
SELECT LIKE ALL OF Table1, DUH
UHH GO
Logifusion[^]
|
|
|
|
|
|
You are like so totally a like hard core developer, or something.
:josh:
My WPF Blog[^]
|
|
|
|
|
awesome
modified 12-Sep-18 21:01pm.
|
|
|
|
|
This gets the best post of the day award hands down!
I can just see the Valley Girl SQL compiler error messages now:
line 1: "CREATE PROCEDURE"
compile error, expected token UMM, LIKE, or UHH
Sincerely,
Alexander Wiseman
|
|
|
|
|
Alexander Wiseman wrote: compile error, expected token UMM, LIKE, or UHH
Hilarious!
Josh, I think you should patent the name.
Logifusion[^]
|
|
|
|
|
I think your post should share the award.
Cheers,
Vikram.
"I am not Jesus and will never be. The fact is I was a piece of cr*p till I found Him." - Paul Selormey.
|
|
|
|
|
line 1: "CREATE PROCEDURE"
Ya know, there was this like compile error, and I kinda expected a token umm, like, UMM, LIKE, or UHH
I've seen better runs in my shorts! - Patches O'Houlihan
|
|
|
|
|
How about ...
Umm SELECT LIKE STUFF
FROM YOU KNOW LIKE DUH
WHERE THINGS ARE LIKE WHATEVER
ORDER BY DRIVETHROUGH, FRIESWITHTHAT = YES
|
|
|
|
|
No you can't do that. You would have to say where (field like '%list1%' or field like '%sdf%') but that would be inefficient anyway.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Select Field1,Field2,Field3 From TableName Where Field1 In(Select Field4 From Table2 Where Field4 Like '%Something%')
|
|
|
|
|
I mean be an idiot for asking this question too but is there a way to pass a class as a parameter of a method i.e.
I have a repeated block of code like this:
class pTermsEditor;
pTermsEditor = new class();
pnlViews.Controls.Add(pTermsEditor);
pTermsEditor.Dock = DockStyle.Fill;
This Block of code is repeated many times but the class type may and almose always does change, so I want to control it more by putting it into a method something like this:
myMethod(class)
{
class x;
x = new class();
//blah blah blah
}
Any help or even a better solution what be greatly appreciated
|
|
|
|
|
You can use the object type, and it is a valid question.
for example
<br />
myMethod(object obj)<br />
{<br />
if (obj.GetType() == typeof(classA))<br />
{<br />
ClassA objA;<br />
objA = (ClassA)obj;<br />
return;<br />
}<br />
if (obj.GetType() == typeof(classB))<br />
{<br />
ClassB objB;<br />
objB = (ClassB)obj;<br />
return;<br />
}<br />
<br />
}
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
-- modified at 14:58 Thursday 6th July, 2006
|
|
|
|
|
You can pass a Type object and then use Activator.CreateInstance to create an instance via the default (parameterless) constructor.
Or, if you're using .NET 2, you can make a generic method whose type parameter is the type that you want to create. Then just do T obj = new T(); where T is your type parameter name.
If all else fails, you can always do the magical type parameter dance and everything should work out fine.
:josh:
My WPF Blog[^]
|
|
|
|
|
That'll work, so long as you put a new() (that is, default constructor) constraint on the method:
void CreateNew<T>() where T : new()
{
T instance = new T();
...
}
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Messianic Instrumentals (with audio)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
That's cool. Thought it wasn't doable
Best,
Jun
|
|
|
|
|
C++/C# hasn't invented that feature yet
Best,
Jun
|
|
|
|
|
hi,
i'm using VS.NET 2003 and I would like to add some systemtray functionality to my C# application. The SystemTray icon should support the follwoing features:
1. Display Baloon Tooltips
2. Display a context menu when right clicked
3. Repsond to mouse events such as Click, DoubleClick etc.
...and other such suff
ANyone know a good class that would help me do this. I have a came across a few but each of them lack some or the other feature. I'm looking for a free one - don't wanna shell out a penny for this one. :->
|
|
|
|
|
NotifyIcon[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|