Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP AGAIN
#11
*sigh* the man asked a valid question. Every time you yell "RTFM" at someone instead of answering their question, God kills a kitten.

There are different types of variables (a label representing a value) in qbasic: Numeric (integer, long integer, single pres., double pres.), and string (fixed and regular).

you can't mix and match strings and numeric values, qb assumes all varaibles (in this case, team.member) to be single precision numbers. So you have to specify that team.member is a string, either:

1) by referring to it as team.member$ (variables ending in $ are strings)
2) DIMing it as a string:
Code:
DIM team.member as string

afterwords, any string value must but in quotation marks, otherwise qb assumes it to be another variable (in this case, bob).

Code:
DIM team.member as string
team.member = "Bob"
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply


Messages In This Thread
HELP AGAIN - by tomlewis86 - 06-04-2003, 10:45 PM
HELP AGAIN - by Agamemnus - 06-04-2003, 10:49 PM
HELP AGAIN - by Ninkazu - 06-04-2003, 10:54 PM
W F M!! - by tomlewis86 - 06-04-2003, 11:08 PM
HELP AGAIN - by Ninkazu - 06-04-2003, 11:13 PM
Thanks but help again - by tomlewis86 - 06-04-2003, 11:18 PM
HELP AGAIN - by Ninkazu - 06-04-2003, 11:18 PM
HELP AGAIN - by tomlewis86 - 06-04-2003, 11:19 PM
HELP AGAIN - by Agamemnus - 06-04-2003, 11:28 PM
HELP AGAIN - by prof_flex - 06-05-2003, 12:02 AM
HELP AGAIN - by toonski84 - 06-05-2003, 12:31 AM
Re: HELP AGAIN - by whitetiger0990 - 06-05-2003, 12:32 AM
HELP AGAIN - by Agamemnus - 06-05-2003, 01:15 AM
HELP AGAIN - by Phydaux - 06-05-2003, 07:16 AM
HELP AGAIN - by Agamemnus - 06-05-2003, 07:42 AM
HELP AGAIN - by oracle - 06-06-2003, 03:44 AM
HELP AGAIN - by Agamemnus - 06-06-2003, 03:46 AM
Re: W F M!! - by seph - 06-06-2003, 03:49 AM
HELP AGAIN - by seph - 06-06-2003, 03:51 AM
HELP AGAIN - by seph - 06-06-2003, 03:55 AM
HELP AGAIN - by Agamemnus - 06-06-2003, 06:02 AM
HELP AGAIN - by seph - 06-06-2003, 06:03 AM
HELP AGAIN - by oracle - 06-06-2003, 06:09 AM
HELP AGAIN - by na_th_an - 06-06-2003, 06:05 PM
HELP AGAIN - by Neo - 06-06-2003, 06:11 PM
What utter nonsense! The best... - by Glenn - 06-06-2003, 06:27 PM
HELP AGAIN - by Neo - 06-06-2003, 06:31 PM
HELP AGAIN - by oracle - 06-07-2003, 03:58 AM
HELP AGAIN - by Hexadecimal Disaster - 06-07-2003, 07:36 AM
HELP AGAIN - by oracle - 06-07-2003, 07:45 AM
HELP AGAIN - by Hexadecimal Disaster - 06-07-2003, 10:58 AM
HELP AGAIN - by relsoft - 06-07-2003, 11:00 AM
HELP AGAIN - by seph - 06-07-2003, 11:03 AM
HELP AGAIN - by Hexadecimal Disaster - 06-07-2003, 11:23 AM
HELP AGAIN - by oracle - 06-09-2003, 01:38 AM
HELP AGAIN - by Hexadecimal Disaster - 06-09-2003, 07:24 AM
HELP AGAIN - by relsoft - 06-09-2003, 08:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)