Division of two strings

I have two strings are defined in my sub and i need to divide one by the other and display the result. Can anyone provide me with an example code?

Who is Participating?
raterusConnect With a Mentor Commented:
well as long as there is an actual numeric value in the string, and only a numeric value, you can cast the values like I suggested earlier and divide them that way.
divide 2 strings....what does dividing 2 strign mean..
are they numbers?

Dim result as double = cdbl(string1) / cdbl(string2)
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

divide one string by the other?  

what do you mean by that?
Armon14Author Commented:
erm two variables defined as strings ..
Armon14Author Commented:
Okay let me futher explain...

I'm getting two variables from two sources. The first is a recordcount from a dataset. The second is user input that has been placed in a database previously and is now being retrieved.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.