Search Result

Collapse
4 results in 0.0014 seconds.
Keywords
Members
Tags
left
  •  

  • VB string.left and string.right as C# Extension methods on string

    Perhaps these 2 tiny methods I'm sharing here come handy to someone.
    Code:
    		public static string Left(this string input, int length) {
    			string result = input;
    			if (input != null && input.Length > length) {
    				result = input.Substring(0, length);
    			}
    			return result;
    		}
    
    		public static string Right(this string input, int length) {
    			string result = input;
    			if
    ...
    See more | Go to post
    Last edited by Niheel; Oct 5 '11, 03:59 PM. Reason: Can you post an explanation of what they do and how to use them? Insights have to more like articles than just code.

  • How to set div width when there is no content inside it

    In firefox and ie8 the middle div is ignoring the width when there is not content.
    Please help me fix it to work the same way for ie7 also

    I cannot remove the width for the main 3 div's
    Code:
    **************************************************************************
    <head>
        <title>Untitled Page</title>
    <link href="ie7.css" rel="stylesheet" type="text/css" />
    ...
    See more | Go to post

  • pizzaface
    started a topic Select Case Assistance Requested

    Select Case Assistance Requested

    Please see my pseudocode below. I'm attempting to read a text file and find specific text in each string of text that is read. When a string of text is read that has the specific text I'm looking for the Case Statement will not evaluate to True. Is what I am doing possible with the Case Statement? Any Help will be appreciated.

    dim strL as String

    While not tso.eof

    strL = tso.readline

    ...
    See more | Go to post

  • Agnes
    Guest started a topic substring, left, right function ?

    substring, left, right function ?

    in .net , any left function ??
    or I should use Microsoft.Visua lBasic.Left(myS tring, 5)
    Thanks...
    See more | Go to post
Working...