|
-
Sep 12th, 2000, 07:44 PM
#1
Thread Starter
Addicted Member
how can I do a LONG INTEGER
as long doesn't work very well and integer doesn't work ..
-
Sep 12th, 2000, 07:57 PM
#2
Frenzied Member
Err... Long is a long integer... what more do you want?
Harry.
"From one thing, know ten thousand things."
-
Sep 12th, 2000, 07:58 PM
#3
_______
<?>
you can't have a long integer
you can have a single, double, long, or integer
double covers off very very long numbers.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 12th, 2000, 08:55 PM
#4
Frenzied Member
Oh right, I take it back
Harry.
"From one thing, know ten thousand things."
-
Sep 12th, 2000, 09:41 PM
#5
Thread Starter
Addicted Member
ok.....
it's just cause one of my friend said that..
just want to check....
-
Sep 12th, 2000, 09:47 PM
#6
If you're talking about Large Integer (8 bytes) then VB doesn't have this data type, but you can declare your variable as Currency and multiply it by 10,000.
The classic example would be when you use GetDiskFreeSpaceEx API.
Code:
BOOL GetDiskFreeSpaceEx(
LPCTSTR lpDirectoryName, // pointer to the directory name
PULARGE_INTEGER lpFreeBytesAvailableToCaller, // receives the number of bytes on
// disk available to the caller
PULARGE_INTEGER lpTotalNumberOfBytes, // receives the number of bytes on disk
PULARGE_INTEGER lpTotalNumberOfFreeBytes // receives the free bytes on disk
);
Also, some VB programmers use user defined data type of 2 longs:
Code:
Public Type LargeInteger
lngUpperInteger As Long
lngLowerInteger As Long
End Type
Private lrgNumber As LargeInteger
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|