Converting Integer to Short in VB6

15 pts.
Tags:
DataType
Integer
VB DataTypes
Visual Basic 6
I need to convert integer to short and short to integer. I need a .dll which I can use in my VB6 project. Please help.
ASKED: March 13, 2009  10:27 AM
UPDATED: March 13, 2009  5:10 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

This <a href=”http://digiassn.blogspot.com/2006/04/visual-basic-integer-to-stringstring.html”>site</a> has some information on variable type conversion, as well as a conversation thread that exapands on the concept a bit. The page located <a href=”http://theopensourcery.com/vb06tut.htm”>here</a> also has some promising looking information on it.
Good Luck!
-Flame

————————–

You will need to provide more information about your question and what exactly you want to accomplish.

AFAIK there is not a SHORT standard data type in Visual Basic 6. However, it exists in C++, but the C++ definition of short is exactly the same as the definition for Integer in Visual Basic.

From the MSDN library 6.0:

Integer data type
<b>A data type that holds integer variables stored as 2-byte whole numbers in the range -32,768 to 32,767.</b> The Integer data type is also used to represent enumerated values. The percent sign (%) type-declaration character represents an Integer in Visual Basic.

Data Type Ranges
C/C++ recognizes the types shown in the table below.

<pre>Type Name Bytes Other Names Range of Values



short <b>2 </b> short int,signed short int <b>–32,768 to 32,767 </b>
…</pre>

In VB there is also a BYTE type, which stores small unsigned numbers from 0-255 (1 byte).

Pleas provide more details.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Deepakrnayak
    any help?
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following