Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have 2 strings, say

 

MyString1="2/10"
MyString2="50%"

 

Is there a "way" to convert both strings to a numeric value? CType and CDbl don't quite do it.

 

Thx.

  • *Experts*
Posted
You mean take the string, parse it and calculate the result? You have to that yourself, but it shouldnt be very hard to write a function like that.
Posted
I thought so. I was just wondering if there was some type of method that would evaluate a string expression and convert it to numeric. Thanks anyhow.
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...