Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
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 
Questionurgntz codez wanted. WinForms - show a usercontrol, docked, as Modal Pin
_Maxxx_9-Jul-09 13:56
professional_Maxxx_9-Jul-09 13:56 
AnswerRe: urgntz codez wanted. WinForms - show a usercontrol, docked, as Modal Pin
Mycroft Holmes9-Jul-09 14:06
professionalMycroft Holmes9-Jul-09 14:06 
GeneralRe: urgntz codez wanted. WinForms - show a usercontrol, docked, as Modal Pin
_Maxxx_9-Jul-09 15:51
professional_Maxxx_9-Jul-09 15:51 
GeneralRe: urgntz codez wanted. WinForms - show a usercontrol, docked, as Modal Pin
Mycroft Holmes9-Jul-09 19:50
professionalMycroft Holmes9-Jul-09 19:50 
QuestionIE automation Pin
yogesh_softworld1239-Jul-09 13:02
yogesh_softworld1239-Jul-09 13:02 
AnswerRe: IE automation Pin
schiebel-t9-Jul-09 21:14
schiebel-t9-Jul-09 21:14 
Question64bit fixed point timestamp to and from DateTime Pin
DaveyM699-Jul-09 11:32
professionalDaveyM699-Jul-09 11:32 
AnswerRe: 64bit fixed point timestamp to and from DateTime Pin
Luc Pattyn9-Jul-09 12:24
sitebuilderLuc Pattyn9-Jul-09 12:24 
GeneralRe: 64bit fixed point timestamp to and from DateTime Pin
DaveyM699-Jul-09 22:28
professionalDaveyM699-Jul-09 22:28 

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.