casting

pholligan

Registered User.
Local time
Today, 13:02
Joined
Jan 20, 2003
Messages
19
Hi

I'm having trouble casting a string into a long as a pointer. I would then like to dereference back into a string.

Any help would be greatly appreciated.

Paul
 
Can you explain in more detail what you mean?
 
Sorry, I tried to keep it as simple as possible! I don't normally program using visual basic so I'm sure the answere will be simple.

The question should read:

How can I cast a string into a long?

Now tell me it can't be done in VB!

Paul :o)
 
If you look up the Conversion functions such as Clng, Cstr etc. you'll get all the details.

Just be careful that the string you are converting is convertible to the long data type.

i.e

Clng("A Word") won't convert but Clng("65477") will
 

Users who are viewing this thread

Back
Top Bottom