My code:

VB Code:
  1. label1.text="Age: 37.1"
  2. msgbox Val(label1.text)

The messagebox displays 0. Isn't val supposed to extract all numbers and strip the text? I was wanting it to return 37.1

Thanks,
Corey

This is VS2005 .NET 2005... the program is written for PocketPC (CF 2) but I think this applies to any VB code.