Click here to Skip to main content
15,907,000 members
Home / Discussions / C#
   

C#

 
QuestionTo open a new file Pin
Rupaa9-Jul-09 19:18
Rupaa9-Jul-09 19:18 
AnswerRe: To open a new file Pin
MumbleB9-Jul-09 19:22
MumbleB9-Jul-09 19:22 
AnswerRe: To open a new file Pin
0x3c09-Jul-09 19:40
0x3c09-Jul-09 19:40 
AnswerRe: To open a new file Pin
Huxley Stronghead10-Jul-09 1:15
Huxley Stronghead10-Jul-09 1:15 
Questioni want to write an application use sanner Pin
nghia.VKS@gmail.com9-Jul-09 18:38
nghia.VKS@gmail.com9-Jul-09 18:38 
AnswerRe: i want to write an application use sanner Pin
_Maxxx_9-Jul-09 19:00
professional_Maxxx_9-Jul-09 19:00 
JokeRe: i want to write an application use sanner Pin
himanshu25619-Jul-09 19:03
himanshu25619-Jul-09 19:03 
JokeRe: i want to write an application use sanner Pin
dan!sh 9-Jul-09 19:05
professional dan!sh 9-Jul-09 19:05 
GeneralRe: i want to write an application use sanner Pin
MumbleB9-Jul-09 19:23
MumbleB9-Jul-09 19:23 
GeneralRe: i want to write an application use sanner Pin
dan!sh 9-Jul-09 19:28
professional dan!sh 9-Jul-09 19:28 
AnswerRe: i want to write an application use sanner Pin
vaghelabhavesh9-Jul-09 20:37
vaghelabhavesh9-Jul-09 20:37 
QuestionTaking variables from other classes. Pin
nik1219-Jul-09 17:02
nik1219-Jul-09 17:02 
AnswerRe: Taking variables from other classes. Pin
N a v a n e e t h9-Jul-09 17:06
N a v a n e e t h9-Jul-09 17:06 
GeneralRe: Taking variables from other classes. Pin
nik1219-Jul-09 17:12
nik1219-Jul-09 17:12 
GeneralRe: Taking variables from other classes. Pin
N a v a n e e t h9-Jul-09 17:19
N a v a n e e t h9-Jul-09 17:19 
GeneralRe: Taking variables from other classes. Pin
nik1219-Jul-09 17:23
nik1219-Jul-09 17:23 
GeneralRe: Taking variables from other classes. Pin
N a v a n e e t h9-Jul-09 17:36
N a v a n e e t h9-Jul-09 17:36 
nik121 wrote:
Yea characterClass was the string for the Constructor in the class CharClasses. But the characterClass says that it doesn't exist in the current context.


WOW! I am not sure how can I explain this to you. All you can do is to get a book and learn the basics.

When you write code like CharClasses Class = new CharClasses(characterClass), compiler is expecting the variable characterClass to be presented in the scope. Here you don't have characterClass declared. You need to declare the variable first before using it. Something like

string characterClass = "Warrior";<br />
CharClasses Class = new CharClasses(characterClass);


D'Oh! | :doh:


GeneralRe: Taking variables from other classes. Pin
Gary Stafford9-Jul-09 17:41
Gary Stafford9-Jul-09 17:41 
QuestionReading and storing variables from data files Pin
ReynaW12239-Jul-09 16:18
ReynaW12239-Jul-09 16:18 
AnswerRe: Reading and storing variables from data files Pin
N a v a n e e t h9-Jul-09 17:10
N a v a n e e t h9-Jul-09 17:10 
GeneralRe: Reading and storing variables from data files Pin
ReynaW122313-Jul-09 5:27
ReynaW122313-Jul-09 5:27 
QuestionProgressBar Pin
peishen889-Jul-09 16:12
peishen889-Jul-09 16:12 
AnswerRe: ProgressBar Pin
N a v a n e e t h9-Jul-09 17:13
N a v a n e e t h9-Jul-09 17:13 
GeneralRe: ProgressBar Pin
peishen889-Jul-09 17:29
peishen889-Jul-09 17:29 
GeneralRe: ProgressBar Pin
Mycroft Holmes9-Jul-09 19:52
professionalMycroft Holmes9-Jul-09 19:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.