Thanks SJB, I thought I heard some where that all pointers are integers, but that casting works the way i wanted.
Angel, this seems to work:
p3 has to be an Int Ptr Ptr though which is wierd, since they are both jut pointers to a variable. I guess Int Pointer is like its own type such as int or float, so an Int Ptr needs its own pointer type, int ptr ptr.
Angel, this seems to work:
Local p1 Ptr, p2 Ptr, p3 Ptr Ptr num=1234 str$="asdf" p1=Int Ptr(VarPtr(num)) p2=Int Ptr(VarPtr(str$)) p3=VarPtr(p2)
p3 has to be an Int Ptr Ptr though which is wierd, since they are both jut pointers to a variable. I guess Int Pointer is like its own type such as int or float, so an Int Ptr needs its own pointer type, int ptr ptr.