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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I change from , to .

Status
Not open for further replies.

arneweise77

Programmer
Apr 25, 2002
46
0
0
SE
Hi everyone!

Simple question I guess.

How do I change a single variable, for intance 2,5 to 2.5
or 3,56 to 3.56?
Is there a simple function to use for this problem?
Please help me to solve this.

Thanks in advance!
 
This may be too late to help, but try the following (I'm assuming your variable is a string).

Dim thisstring As String = "2,6"
MsgBox("thisSTring was initialized to " & thisstring)
thisstring = Replace(thisstring, ",", ".")
MsgBox("thisSTring is now " & thisstring)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top