Page 1 of 1

I'm having a bit of a problem

Posted: Tue Aug 29, 2006 1:46 pm
by XMLTorrent
Hey all. I'm new here and I have a question.

Before I begin, I want to say that I'm using QB4.5.

Now I've been reading tutorials all day and I've been reading about the TYPE keyword. I was typing in some code from a tutorial and it said something like this:

Code: Select all

TYPE SpellsType
     Name AS STRING * 20
     'More attributes after this
END TYPE
QB4.5 tells me that in the line that says Name AS STRING * 20, an expression is expected. I've done work with VB before and it's similar in syntax and it never ever told me something like that. Is there something wrong with the tutorial or something wrong with QB4.5 or am I totally off track? Thanks for the help in advance. :lol:

Posted: Tue Aug 29, 2006 1:59 pm
by Z!re
NAME is a registered keyword.

Posted: Tue Aug 29, 2006 4:13 pm
by Patz QuickBASIC Creations
Z!re wrote:NAME is a registered keyword.
Yeah, that is a bitch sometimes. You want to use a name that's easy to remember, but then QB has it reserved. Go figure.

Posted: Tue Aug 29, 2006 11:48 pm
by Eclipzer
Patz QuickBASIC Creations wrote:
Z!re wrote:NAME is a registered keyword.
Yeah, that is a bitch sometimes. You want to use a name that's easy to remember, but then QB has it reserved. Go figure.
Here are a few of my "name" substitutes:

nam
nme
PlayerName
CharacterName
CharName
Title (my personal favorite)

-Eclipzer

Posted: Wed Aug 30, 2006 8:47 am
by {Nathan}
Eclipzer wrote:
Patz QuickBASIC Creations wrote:
Z!re wrote:NAME is a registered keyword.
Yeah, that is a bitch sometimes. You want to use a name that's easy to remember, but then QB has it reserved. Go figure.
Here are a few of my "name" substitutes:

nam
nme
PlayerName
CharacterName
CharName
Title (my personal favorite)

-Eclipzer
What! No N4m3???????!!!!!!!!!!!!1111shift+1!!!1!!one!!11!!shift+one!!!

Posted: Wed Aug 30, 2006 11:39 am
by bungytheworm
PlrName
CharName
CityName


But no Pl4N4m3 or Ch4rN4m3....gee i hate those :lol:

Posted: Thu Aug 31, 2006 2:14 pm
by AiRMaN
Z!re wrote:
NAME is a registered keyword.

I always knew it's a RESERVED keyword, where the heck did you come up with registered!?

There are several substitutes for 'Name', but few are good ones!, most of the programs I saw use 'Nom', 'Title' is really good, some use 'Caption'.

Never use PlayerName or CharName or suchlikes, besides looking hedious, it's stupid to have a 'Spell.SpellName' variable!

I like Nathan's 'N4m3' but it doesn't look professional to me!

Posted: Thu Aug 31, 2006 8:16 pm
by Z!re
AiRMaN wrote:Z!re wrote:
NAME is a registered keyword.

I always knew it's a RESERVED keyword, where the heck did you come up with registered!?
Probably up your ass.

Posted: Thu Aug 31, 2006 8:44 pm
by XMLTorrent
I just looked up the function of that keyword and quite frankly, I think it's the most useless keyword in the entire language.

But thanks for the help on that one. That was stumping me.

Posted: Sat Sep 02, 2006 9:45 am
by AiRMaN
Z!re wrote:
Probably up your ass.

You're a naughty girl, didn't your mom told you not to say words like these!

Anyway It's probably up yours, I don't have any because I work it all day long (Actually I have a cute one!)

Posted: Sat Sep 02, 2006 4:02 pm
by thegrogen
AiRMaN wrote: You're a naughty girl, didn't your mom told you not to say words like these!
I wouldn't talk back to Z!re... She's been rather moody lately.

You don't want her to cause an... incident, would you?

Posted: Sat Sep 02, 2006 7:37 pm
by {Nathan}
I agree. Zire, after all, is capable of murder.

She is like a mad women with a high frequency blade, AK-74u, and PSG-1.

Posted: Sun Sep 03, 2006 4:44 am
by Nodtveidt
AiRMaN wrote:I always knew it's a RESERVED keyword, where the heck did you come up with registered!?
Reserved, registered, semantics are kinda bogus here...might as well call it a pwned word, it'd work too...

You gotta be kidding me!

Posted: Mon Sep 04, 2006 10:31 am
by AiRMaN
Guyz, what the heck are you talking about?!, all this Don't talk back to Z!re, She's capable of murder!!, She's just a computer chick with a big mouth! and if she's capable of murder, I'm capable of even worse things.

Once a wise man said: "Don't mess up with the Dean!

Nekrophidius, maybe you're right, but I hold on to my thought!

Re: You gotta be kidding me!

Posted: Mon Sep 04, 2006 1:58 pm
by Z!re
AiRMaN wrote:Guyz, what the heck are you talking about?!, all this Don't talk back to Z!re, She's capable of murder!!, She's just a computer chick with a big mouth! and if she's capable of murder, I'm capable of even worse things.

Once a wise man said: "Don't mess up with the Dean!

Nekrophidius, maybe you're right, but I hold on to my thought!
I once made a forum go down for several days... Funny thing is, I was banned at the time and didnt even attempt to access it..

Lets have a wet t-shirt competition, you go first, i promise to follow. Or maybe you're just full of shit and cant prove your tough words?