It returns the address where a string is located. You create a string by calling the CStr function, the string returned by that function must be stored somewhere and it's in the location returned by StrPtr.