|
OK - you cannot change the state of a string ( they are immutable ). Is tracking changes an issue ? If not, then stick to what I said.
Yes, there is no built in support for a container to contain ranges of items from another container, not without actually doing what I said.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
in my vb.net project when i click a button it should start a wizard and i need to parse a dice job bord resume
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
braejsh wrote: mail me at rajesh.batchu@cesltd.com
So let me get this right - you've posted two jobs to this forum, with your email address. No sign you've tried to do any of this yourself, are you really hoping someone will take the time to write all this and email it to you ?
What version of .NET are you using ? .NET 2.0 has a wizard control. As for parsing a web site, there's articles on how to do that. Putting a web site into your app is trivial.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i am using the .net 2.0 but where is the wizard control i am unable to find it plz help me
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
Perhaps there's only one for ASP.NET. No matter. Just create your wizard pages as controls and write a control which contains them and shows them one at a time.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
in my vb.net porject i need to have tosend mail but it shoul have the same interface of ms outlook can any one help me
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
braejsh wrote: mail me at rajesh.batchu@cesltd.com
No - that's not what the forums are for. If you registered with this email, the forum will mail you.
braejsh wrote: but it shoul have the same interface of ms outlook
You mean it should look entirely like outlook ? There are some controls about on this site and others that emulate parts of the outlook UI. You're going to have to find them, or buy a library and make the UI yourself. Sending the mail itself is trivial, as I'm sure you are aware.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello,
I am alex i am a .net programmer in my application i want to produce crystal report but the fields are coming from different tables ie, the fields are decided at the time of running.my problem is how can i bound these values into an unbound field in crystal report ,Can anybody give me a valuable suggestion..
i am waiting for your replys..alex.
|
|
|
|
|
I need the value in "\d*" to replace the "5". Is there an easy way to move that value over there?
Equation = Regex.Replace(Equation, "sqrt\d*", CStr(Math.Sqrt(5)), RegexOptions.IgnoreCase)
|
|
|
|
|
No - regex doesn't have math operators. You'll need to find the values you're after ( probably still with a regex, just use grouping to extract the number ), then use the replace method on the string to replace them after you have the square roots you want.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
You can use a delegate to do anything you like with the value. I haven't tested this code, but it should be pretty close:
Regex.Replace(Equation, "sqrt\d+", delegate(Match match) { return Math.Sqrt(double.Parse(match.Value.SubString(4))).ToString(); } );
I changed the \d* to \d+ in the pattern by the way. I don't think that the keyword sqrt followed by zero digits is that useful...
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the code! Visual studio has "delegate" underlined in blue and says "Expression expected". I don't really know that much about them, so Im reading up on it now.
|
|
|
|
|
Right, the code is C# syntax. Sorry, I didn't check what message board it was. The VB.NET syntax would be a bit different. Perhaps you have to use a named method instead of an anonymous method.
---
b { font-weight: normal; }
|
|
|
|
|
Someone posted this code on another forum. It seems to work pretty well.
Dim Equation As String = "4+sqrt25"
Dim Matches As System.Text.RegularExpressions.MatchCollection = _
System.Text.RegularExpressions.Regex.Matches(Equation, "sqrt(?<number>\d*)")
For Each Match As System.Text.RegularExpressions.Match In Matches
Dim MyDbl As Double = Math.Sqrt(CDbl(Match.Groups("number").Value))
Equation = Equation.Substring(0, Match.Index) & MyDbl.ToString & _
Equation.Substring(Match.Index + Match.Length)
Next
MessageBox.Show(Equation.ToString)
|
|
|
|
|
It works for a single value, but with more than one value the position in the Match objects will not match the string any more.
If you for example have the string "1+sqrt25+sqrt16+123456", you will get two matches at position 2 and 9. The first match will correctly be replaced so that the string contains "1+5+sqrt16+123456", but now the match at position 9 will no longer match the contents of the string. The second replace will replace "6+1234" instead of "sqrt16", so the final result is "1+5+sqrt1456" instead of "1+5+4+123456".
Looping through the matches in reverse order would work, though, or putting the result in a separate string.
---
b { font-weight: normal; }
|
|
|
|
|
|
how to insert a picture item into a listbox??? not text but picture!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
A listCtrl allows you to set an icon, your other option is to write an owner drawn control, or search CP for one, there's bound to be several.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
wat is listCtrl?? im new of this word! :/
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Actually, it may be called a ListView.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
OWWW IC! this is my last question! can you tell me how enter an icon into the listview please?? thanks alot!!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
You just create an image list, associate it with the control, and set the image index within the list for each item.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
how to insert pictue to it
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
Exactly as I said, which bits confused you ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
ok i get used to it for the listview! thanks alot Christian !!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|