Valhalla Legends Forums Archive | Visual Basic Programming | Help

AuthorMessageTime
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.
October 27, 2003, 2:13 AM
K
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.
October 27, 2003, 2:30 AM
St0rm.iD
[quote]
Byte - one byte. 0 through 255.
[/quote]

If it's unsigned.
October 28, 2003, 12:44 AM
K
[quote author=St0rm.iD link=board=31;threadid=3292;start=0#msg26161 date=1067301856]
[quote]
Byte - one byte. 0 through 255.
[/quote]

If it's unsigned.
[/quote]

Which it is in visual basic.
October 28, 2003, 12:48 AM
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.
October 28, 2003, 3:15 AM
Arta
Because.... VB sucks! ::)
October 28, 2003, 12:49 PM
Grok
[quote author=Arta[vL] link=board=31;threadid=3292;start=0#msg26217 date=1067345362]
Because.... VB sucks! ::)
[/quote]

That's not helpful.
October 28, 2003, 1:15 PM
BlazingKnight
Neither is "That's not helpful."
October 28, 2003, 8:59 PM
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).
October 28, 2003, 9:16 PM
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.
October 28, 2003, 9:53 PM
iago
[quote author=Yoni link=board=31;threadid=3292;start=0#msg26260 date=1067375794]
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).
[/quote]

haha, I was going to do the exact same thing, but I also couldn't think of anything useful to say along with it :)
October 29, 2003, 12:23 AM
Arta
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.
October 29, 2003, 12:43 AM
Skywing
[quote author=Grok link=board=31;threadid=3292;start=0#msg26261 date=1067377998]
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.
[/quote]
Those are user-defined classes in C++ and Java, similar to the more common arbitrary-precision integral types.
October 29, 2003, 1:13 AM
-MichaeL-
You may want to try pscode.com or google that always helps me
November 2, 2003, 2:33 AM
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*** ;)
November 12, 2003, 8:42 PM
CrAz3D
#1-Crazy your post was the least helpful of all, you insulted the guy.

#2-Try http://vbtutor.com, http://msdn.microsoft.com(for definitions), & maybe http://www.vbwire.com/ or even http://www.vbcode.com/
November 13, 2003, 2:51 AM
Adron
[quote author=CrAz3D link=board=31;threadid=3292;start=15#msg28912 date=1068691872]
#1-Crazy your post was the least helpful of all, you insulted the guy.
[/quote]

So, let's nominate Crazy for banning from the forum!

/ Moderator Adron
November 13, 2003, 10:51 AM
St0rm.iD
Gets my vote.
November 14, 2003, 1:40 AM
iago
On a side-note, how was he able to start a thread without an account?
November 14, 2003, 4:07 AM
Spht
[quote author=iago link=board=31;threadid=3292;start=15#msg29097 date=1068782822]
On a side-note, how was he able to start a thread without an account?
[/quote]

I believe his account was deleted after he posted.
November 14, 2003, 4:17 PM

Search