Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing a string into chars and back into string

Status
Not open for further replies.

barny2006

MIS
Mar 30, 2006
521
US
is there a way to change a string into chars and after changing each char, put the chars back together into a whole string?
 
You could use a loop with the mid function to extract the characters, change them, then concatenate them.
Could you be more specific with what you actually want to do?
 
ok, here is the problem. i can use the mid function to change each char in an array x( ). but after i change each char in the array x ( ). how do i put this array back into a string.
case: "street" must be chanted to "STREET" in some cases.
i know i can convert street into each char and subtract 32 from the ascii value. but now i have an array x ( ). how do i convert this array into a whole string?
 
Try
Code:
Join(x,"")

[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
You may simply consider the UCase function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top