|
-
Nov 18th, 2008, 09:17 AM
#1
Thread Starter
Fanatic Member
append string
how can i add a "\" at the end of a string?
Software languages known:
Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
Software API's known:
Directx 7 and 8
Internet languages, in the process of learning:
HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX
-
Nov 18th, 2008, 09:21 AM
#2
Re: append string
string = string & "\"
To test if it is already there? If Right$(string, 1)="\" then it's there already
-
Nov 18th, 2008, 09:32 AM
#3
Thread Starter
Fanatic Member
Re: append string
for some reason it isnt working?
Software languages known:
Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
Software API's known:
Directx 7 and 8
Internet languages, in the process of learning:
HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX
-
Nov 18th, 2008, 09:36 AM
#4
Thread Starter
Fanatic Member
Re: append string
are there some strings you just cant change?
Software languages known:
Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
Software API's known:
Directx 7 and 8
Internet languages, in the process of learning:
HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX
-
Nov 18th, 2008, 09:46 AM
#5
Re: append string
Fixed length strings are one; also, if there is a vbNullChar (= Chr$(0)) in the string and you try to put it in a control the string will be cut, null characters are not allowed in most controls.
There can also be fixed length strings declared as Dim strMyString As String * 200
-
Nov 18th, 2008, 09:47 AM
#6
Re: append string
 Originally Posted by damasterjo
are there some strings you just cant change?
Constants can't be changed:
Const myString As String = "asfasdf"
Fixed length strings can be changed but can't be made longer
Dim myString As String * 10 ' 10 characters only
myString = "1234567890\" will only be "1234567890"
You might want to post the line of code that is giving you problems and how it was declared, i.e., the DIM statement for that string.
-
Nov 18th, 2008, 09:55 AM
#7
Thread Starter
Fanatic Member
Re: append string
gosh i hate programming sometimes, i fixed it ghetto style but i think it might work...
Software languages known:
Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
Software API's known:
Directx 7 and 8
Internet languages, in the process of learning:
HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX
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
|