|
-
Jun 20th, 2002, 06:18 AM
#1
Thread Starter
Member
What am I doing wrong?
VB Code:
DisplayText = "/me plays *AR - *SN"
Replace DisplayText, "*AR", MP3.Artist
Replace DisplayText, "*SN", MP3.Title
Replace DisplayText, "*AL", MP3.Album
DisplayText still returns "/me plays *AR - *SN", all MP3 varibles have the correct text in them. *sighs* - I don't see what I'm dong wrong...
-
Jun 20th, 2002, 06:22 AM
#2
Frenzied Member
Replace returns the altered string as a return parameter, the original string is passed ByVal
VB Code:
DisplayText = "/me plays *AR - *SN"
DisplayText = Replace(DisplayText, "*AR", MP3.Artist)
DisplayText = Replace(DisplayText, "*SN", MP3.Title)
DisplayText = Replace(DisplayText, "*AL", MP3.Album)
-
Jun 20th, 2002, 06:25 AM
#3
To start with , wrong is a subject whats wrong or help or .... whatever don't apply to a good subject.
The replace function does return something. (a string)
if you don't capture it , and store it somewhere then it is lost.
If you want to replace the *AL bit you must provide it to replace.
try to add msgbox before it you'll see it.
-
Jun 20th, 2002, 06:25 AM
#4
Thread Starter
Member
Ah.. thankyou. I feel stupid now...
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
|