First 4 characters of a string

Results 1 to 3 of 3

Thread: First 4 characters of a string

  1. #1
    Join Date
    Dec 1969
    Posts
    552

    Default First 4 characters of a string

    How can I get the first four chatacters of a string?<BR><BR>Is there a trim function that i can use aswell?<BR><BR>Many thanks<BR><BR>Tim

  2. #2
    Join Date
    Dec 1969
    Posts
    231

    Default RE: First 4 characters of a string

    Simple :<BR><BR><BR>left("astringlongerthanfourwords",4)< BR><BR><BR>MikeD

  3. #3
    Join Date
    Dec 1969
    Posts
    19,082

    Default RE: First 4 characters of a string

    there are a number of ways. all of which are explained in the documentation<BR><BR>http://msdn.microsoft.com/scripting/<BR><BR>VBScript<BR>Left()<BR>Mid()<BR><BR>Jscript <BR>.substring()<BR><BR>look &#039;em up.<BR><BR>j<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •