dim str,strpass,strdate as string
dim cnt as integer
str = 7706 <11 Jul 2004 14:42>
'u said it was four then...
strpass=left(str,4) 'get 7706
for cnt = 1 to len(str)
if mid(str,ctr,1)= "<" then
exit for
endif
next cnt
strdate = mid$(str,ctr,ctr-len(str)) 'get the <11 Jul 2004 14:42>
strpass="[" & strpass & "]" & " " & strdate 'concatenate
strpass="[" & strpass & "]" & " " & strdate 'concatenate
'i suggest you debug this and watch the value....
Michael J Wallace <[EMAIL PROTECTED]> wrote:
I guess i need to clarify a little better :)a sample line is like this: 7706 <11 Jul 2004 14:42>all lines are starting with a 4 number set, the date following is of no consequence.i want to place brackets "[" at the beginning and end of the number sequence so it looks like [7706].I have almost all of it sorted except how to place the bracket at the BEGINNING which is driving me completely nutsThanks yet again ...Mike----- Original Message -----From: allan ray gaganiSent: Monday, November 08, 2004 4:30 AMSubject: RE: PSC string functions..maybe u gonna laugh at this...i got string1 and string2. you want string1 to be placed in string2....string2=string1 & string2MyString="bcd"
MyString = "a" and MyString
'MyString now = "abcd"
Lu.
-----Original Message-----
From: udtmang [mailto:[EMAIL PROTECTED]
Sent: 08 November 2004 08:10
To: [EMAIL PROTECTED]
Subject: PSC string functions..
Does any one know how to add a character to the BEGINNING of a line ?
To unsubscribe, send an email to:
[EMAIL PROTECTED]
Yahoo! Groups Links
To unsubscribe, send an email to:
[EMAIL PROTECTED]
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
To unsubscribe, send an email to:
[EMAIL PROTECTED]
To unsubscribe, send an email to:
[EMAIL PROTECTED]
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
To unsubscribe, send an email to:
[EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/PlanetSourceCode/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
