I haven't found the answer in my book yet, so I thought I'd jump ahead and just ask the question here...

I have the following code in my VB6 program that formats a string representation of a number to a decimal foot number. I am having trouble formatting the same string in VB.NET. When I read the help pages, it appears that nothing has changed and this should work like it did in VB6.

Code:
Function conv(fis As String) As Double
'use this function to convert feet inches sixteenths
'to decimal foot. (240308 becomes 24.2917)
    
    decft = Format(fis, "000000") 'pad string length

    F = Mid(decft, 1, Len(decft) - 4)
    I = Mid(decft, Len(decft) - 3, 2) / 12
    S = Mid(decft, Len(decft) - 1, 2) / 192

    conv = Format(F + I + S, ".0000")

    Exit Function

End Function
When I use the exact same code in VB.NET, nothing happens. I don't get any error messages either...

Any help would be greatly appreciated...