Results 1 to 8 of 8

Thread: get rid of 

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Location
    Belgium
    Posts
    98
    Hi,

    How do I get rid of  ????

    example:

    "+R3" has to be "+R3"
    How can I do this ???

    This mail looked differend.
    the "" are small squares

    R@emdonck

    [Edited by R@emdonck on 08-30-2000 at 04:08 AM]

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    I am not really sure what you are after. If you always want the first 3 characters, you can use the Left$() function to return the first 3 characters.

    Code:
    strNew = left$("+R3", 3)
    If this isn't what you are after, post again with a little more information.

    Ok VB-world is messing my post up now
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Location
    Belgium
    Posts
    98

    Unhappy some extra info

    In a DAO recordset I get the result of a stored procedure from an SQL7 server.
    There is a field that returns those little squares, somekind of symbol.
    I can paste them in this forum, but when I submit, the are changed by this forum to "#61567"
    I need to get rid of them, somehow ...

    R@emdonck

  4. #4
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    That still does not help much. I want to know if there is a pattern to the codes. Is it always the first three characters you want, is it less sometimes, or more?
    Iain, thats with an i by the way!

  5. #5
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Does it matter?
    Code:
    sMyString = "+R3ĕĕĕĕ" ' Or whatever...
    sMyString = Replace(sMyString, "ĕ", vbNullString)
    This SHOULD work with VB6. However, I have VB5 and can't test it.
    I'm pretty sure that's the correct syntax, though.

  6. #6
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Well, there's the forum changing it for you.
    The little fi thing should be &-#-61567-;
    (Without the dashes)
    I think it's HTML changing it.

  7. #7
    Lively Member
    Join Date
    Jul 2000
    Location
    Stockholm, Sweden
    Posts
    83
    Isn't
    Code:
       left$("+R3",instr("+R3", "&")-1)
    a better solution ?
    Yesterday, all my troubles seemed so far away...
    Help, I need somebody, Help...
    Now MCSD and still locking for intresting job in the south parts of Stockholm, Sweden.

  8. #8
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    If you want to preserve the little square symbols, Replace (as in: Replace function) the &-#-61567-; (dashless) thing with: ChrW(61567)

Posting Permissions

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



Click Here to Expand Forum to Full Width