As the title, how could I convert the String into Integer in VB6?

Say:

Dim str As String
Dim num As Integer

str = "12345"

How could I set the integer value to num (12345) here ?

Thanks!
Jim Cheng