This should (I'd think) be simple, but I can't figure it out.
I have Width (a text variable) that can contain a fraction (such as "2 1/2"). I need to set a WidthDim variable (double) equal to the value indicated by Width.
I tried:
but this gives me a Type Mismatch error.
I tried splitting Width into two strings (one for the integer portion, and one for the fraction), but that doesn't work either. If I try:
in the Immediate window, I still get a type mismatch error.
So how can I convert a text string (such as "1/2" or "7/16") into a decimal value??
Bookmarks