P pholligan Registered User. Local time Today, 13:26 Joined Jan 20, 2003 Messages 19 Feb 18, 2003 #1 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
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
Mile-O Back once again... Local time Today, 13:26 Joined Dec 10, 2002 Messages 11,316 Feb 18, 2003 #2 Can you explain in more detail what you mean?
P pholligan Registered User. Local time Today, 13:26 Joined Jan 20, 2003 Messages 19 Feb 18, 2003 #3 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 )
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 )
Mile-O Back once again... Local time Today, 13:26 Joined Dec 10, 2002 Messages 11,316 Feb 18, 2003 #4 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
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
P pholligan Registered User. Local time Today, 13:26 Joined Jan 20, 2003 Messages 19 Feb 18, 2003 #5 That's great thank you.