Integer(x) returns the address that x points to, not the contents of that address. Trying to compare that address to a string is meaningless.
Tim Alfred Van Hoek wrote: > > Given that the following is valid and gives a desirable result: > > A memoryblock instance (Identifier) passed from a plugin is being > treated as a Ptr like > > dim x as Ptr = identifier > > and is then casted to an Integer and compared like > > if Integer(x) = 1234 then > MSGBox "yippee" > end if > > However, how does one cast a Ptr to a string like: > > if string(x) = "myypppeestring" then > ..... > > the compiler complains because string is not a class, yikes.... > > Alfred > No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.1/805 - Release Date: 5/15/2007 10:47 AM _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
