vb.net - How do I convert feet to inches in a string -


I have the following functions that detects and changes the inches and feet in a string.

  'Invert the private shared function (value as string) in the form of string regex reges. Change (value, "([\ d.] +) ', Function (M) format (single purse (M. Group (1) .Val) (0.3048," Standard ")) End Function' Foot Private Sharing Function ConvertFeet (value as string) string as regex Regex. Replace (value, "([\ d.] + '' '', Function (m) format (single purse (m. Group (1). ) * 0.0254, "Standard") End Function  

Please I would like to add these functions together so that for example, I have 0.74 meters near 2'5 '' - Inches mean R '' - Leg means

If there is any other way to do this, I would gladly appreciate it

If you can guarantee that string input is in the right format, then it should work:

  string command strings string () = form of value Convert Private Shared Function to (Value as String). Convert as Strip ("'' ') (Value as String). Return StrParts (0). Ophi (* * 0.3048 + strparts (1) .od double () * 0.0254 and function  

There is usually another way in keeping the conference for feet and inches, so < Code> 5'11 '' 5 feet, 11 inches. P>


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -