|
-
Aug 30th, 2000, 03:04 AM
#1
Thread Starter
Lively Member
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]
-
Aug 30th, 2000, 03:53 AM
#2
Fanatic Member
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!
-
Aug 30th, 2000, 04:23 AM
#3
Thread Starter
Lively Member
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
-
Aug 30th, 2000, 05:01 AM
#4
Fanatic Member
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!
-
Aug 30th, 2000, 05:56 AM
#5
Guru
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.
-
Aug 30th, 2000, 06:00 AM
#6
-
Aug 30th, 2000, 11:24 AM
#7
Lively Member
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.
-
Aug 30th, 2000, 01:03 PM
#8
Guru
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|