User Profile

Collapse

Profile Sidebar

Collapse
n00bish
n00bish
Last Activity: Dec 29 '07, 09:45 PM
Joined: Dec 22 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Code:
                string[] str = RemoveSpace(input);
                int number = str.Length;
                int count = 0;
    
                int split_at_chars = 43;
                int debugmode = 1; /* 1 = on, 0 = off */
    
                string newtext = null;
                split_at_chars--;
    
                foreach (string x in str)
                {
                    string substr = x;
    ...
    See more | Go to post

    Leave a comment:


  • Code:
            private string FixString(string input)
            {
                string[] peek = input.Split(new char[] { ' ' });
                string geek = null;
                string temp = null;
    
                foreach (string gay in peek)
                {
                    temp += gay + " ";
                    if (temp.Length > 10)
                    {
                        geek
    ...
    See more | Go to post

    Leave a comment:


  • Thx mate, its much appreciated - but Im still lost you know, some parts are just so d**n hard to understand sometimes. And dont take me wrong, I know how to code and etc in C# - just some parts doesnt come as easy as everything else... Hehehe, anyways I think a loop is needed for my operation to be truly working - so yeah, I would need a class and etc for the job.

    /Regards, Geir G....
    See more | Go to post

    Leave a comment:


  • Thx for the fast reply, but that doesnt exactly give me any help at all... Im still back at square 1 with that example mate...

    :(
    See more | Go to post

    Leave a comment:


  • n00bish
    started a topic String Formatting Problem - Need help in MS C#..
    in .NET

    String Formatting Problem - Need help in MS C#..

    Say I have a string with a length of 30 chars, and I want to re-format that string into lines with each a maximum of 10 chars.
    How do I format that text without changing the sentences involved in that string?
    I mean, I want the text to lined up as I mentioned earlier - but I dont want the text to be messed up when the formatting is done....

    Is there a way todo this?

    /Regards, Geir G.
    See more | Go to post
    Last edited by n00bish; Dec 22 '07, 09:56 AM. Reason: forgot to include system....
No activity results to display
Show More
Working...