Announcement

Collapse
No announcement yet.

instr Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • instr Problem

    I am trying to reformat a list of Email Addresses.
    There is a "-" between the first part of the data,
    where I am having the problem is getting the second half of the data
    to prinnt next to the reformated first part.
    Example: Base Data [email protected]
    Want to create [johnjones][email protected]
    I can get the first part but sor some stupid reason I can't
    get the second part to print.
    ANY help would be appreciated.
    Warm Regards,
    Lloyd Plantholt

    ------------------

  • #2
    You could use something like this
    Code:
    i = INSTR(BaseData$,"-")
    PRINT "[";LEFT$(BaseData$,i-1);"]";MID$(BaseData$,i)
    ------------------
    George W. Bleck
    Senior System Engineer
    KeySpan Corporation

    [This message has been edited by George Bleck (edited December 13, 2001).]
    <b>George W. Bleck</b>
    <img src='http://www.blecktech.com/myemail.gif'>

    Comment


    • #3
      Try this variation:
      Code:
      A$ = "[" + A$
      REPLACE "[email protected]" WITH "][email protected]" IN A$
      ------------------
      Lance
      PowerBASIC Support
      mailto:[email protected][email protected]</A>
      Lance
      mailto:[email protected]

      Comment

      Working...
      X