Brain Dead

Results 1 to 4 of 4

Thread: Brain Dead

  1. #1
    Sid Guest

    Default Brain Dead

    Hello<BR><BR>My brain has imploded can you help ?<BR><BR>I need to extract a word from a string ie<BR><BR><BR><BR>i need to take test and put it in a var and take .now and put that in a separate var .<BR>I know its got to be something to do with InStr() but just can&#039t think how.<BR><BR>Can anybody help ?<BR><BR>Sid

  2. #2
    Join Date
    Dec 1969

    Default RE: Brain Dead

    And the variable lengths may be varrying correct?<BR><BR>So you will not be able to use MID() ?<BR>

  3. #3
    Join Date
    Dec 1969

    Default Dot's right...

    Well, you could use INSTR, thus:<BR><BR>&#060;%<BR>txt = ""<BR>dot = InStr(txt,".")<BR>first = Left( txt, dot-1 )<BR>second = Mid( txt, dot )<BR>%&#062;<BR><BR>But another way:<BR><BR>&#060;%<BR>txt = ""<BR>temp = Split(txt,".")<BR>first = temp(0)<BR>second = "." & temp(1)<BR>%&#062;<BR><BR>

  4. #4
    Sid Guest

    Default RE: Dot's right...

    Bill<BR>Thanks for the info i shall look at it 2morow as it is now time to go home.<BR><BR>Also if you need ( personnally ) any web space for small projects etc send me an email at<BR><BR>Its because you are always there to help.<BR><BR>Thanks once again<BR><BR>Sid

Posting Permissions

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