• Welcome to Valhalla Legends Archive.
 

Help

Started by BlazingKnight, October 26, 2003, 08:13 PM

Previous topic - Next topic

BlazingKnight

Could somebody please define the following VB6 commands for me, or please tell me if my definition to the side of it is true. Also, does anybody have any recommendations for a good VB6 website w/ definitions and examples?

Double
ByRef
ByVal - Value of the string
Byte
Call - Opens a Sub
Long - Length of an integer/string
Option Explicit
Global - Public ? As ?
Lib
DefInt - Defined Integer (Public/Private ? Const As Integer)
DefStr - Defined String (Public/Private ? Const As String)
DefLng - Defined Long (Public/Private ? Const As Long)

Thanks for your help.

K

#1
Double- an IEEE 64-bit floating point number. -1.79769313486231570E+308 through
-4.94065645841246544E-324 for negative values; 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values.
ByRef- passes an object by reference; changes to the object inside the function call will affect its value outside the function.
ByVal - passes an object by value; the object will not be changed.
Byte - one byte. 0 through 255.
Call - calls a function or procedure.  Not necesarry.
Long - a 32bit non-floating point number. -2,147,483,648 through 2,147,483,647.
Option Explicit - requires variable definitions. (good)
Global - a variable defined as global is visible throughout the entire program.

Banana fanna fo fanna

Quote
Byte - one byte. 0 through 255.

If it's unsigned.

K

Quote from: St0rm.iD on October 27, 2003, 06:44 PM
Quote
Byte - one byte. 0 through 255.

If it's unsigned.

Which it is in visual basic.

Etheran

Why does visual basic have bytes, but not words or dwords?  it would seem logical to include these since you can't declare signed and unsigned variables.

Arta

Because.... VB sucks!  ::)

Grok


BlazingKnight

Neither is "That's not helpful."

Yoni

I was actually going to post what Arta said, but avoided it because I had nothing more useful to say about it. But that's the truth. VB doesn't have unsigned types larger than 8-bit for no other reason than the fact that it sucks. It should have them, but it doesn't. Note it also doesn't have a signed 8-bit type (though that's not usually as useful).

Grok

I disagree.

Where are the 9-bit unsigned types in C++?
What about the 37-bit signed types in Java?

The language is for what it was designed for.  You as a moderator of this forum should be cognizant and respectful of the purpose of this specific tool for rapid application development.

This forum will not become a language bashing forum, even to the slightest.  If you're wanting to get help accomplishing a task in Visual Basic, we're here to talk about it and help out if we can.

Hmm, maybe people are going to try to mix help with bashing just to see if they can do it.  Guess I'll have to get my ban trigger finger ready.

iago

Quote from: Yoni on October 28, 2003, 03:16 PM
I was actually going to post what Arta said, but avoided it because I had nothing more useful to say about it. But that's the truth. VB doesn't have unsigned types larger than 8-bit for no other reason than the fact that it sucks. It should have them, but it doesn't. Note it also doesn't have a signed 8-bit type (though that's not usually as useful).

haha, I was going to do the exact same thing, but I also couldn't think of anything useful to say along with it :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Arta

#11
Quite true, Grok. However, by the standards with which I would rate a programming language - criteria such as flexibility of implementation, code size, execution speed, and even a touch of aesthetic appreciation - VB sucks. For rapid application development where none of the afforementioned things matter, it's fine. That, however, isn't something that interests me.

All that is irrelevent really though: I just couldn't leave the comment hanging. Someone had to pluck it ;) Perhaps inappropriate for a moderator though. Point noted.

[OT] Edit: Just noticed I'm not one. Could someone fix that? Don't so much care about this forum, but General & C++ would be appreciated.

Skywing

Quote from: Grok on October 28, 2003, 03:53 PM
I disagree.

Where are the 9-bit unsigned types in C++?
What about the 37-bit signed types in Java?

The language is for what it was designed for.  You as a moderator of this forum should be cognizant and respectful of the purpose of this specific tool for rapid application development.

This forum will not become a language bashing forum, even to the slightest.  If you're wanting to get help accomplishing a task in Visual Basic, we're here to talk about it and help out if we can.

Hmm, maybe people are going to try to mix help with bashing just to see if they can do it.  Guess I'll have to get my ban trigger finger ready.
Those are user-defined classes in C++ and Java, similar to the more common arbitrary-precision integral types.

Michael

You may want to try pscode.com or google that always helps me

CrAzY

Try learning VB Before you post any thing about it.  You need basic concepts learned before you even attempt to do something hard like frickin doubles... wink wink*** ;)
CrAzY