Click here to Skip to main content
15,888,007 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:03
yogi_bear_798-Oct-09 9:03 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 10:09
yogi_bear_798-Oct-09 10:09 
GeneralRe: Help with Constants Pin
harold aptroot8-Oct-09 10:58
harold aptroot8-Oct-09 10:58 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 12:31
yogi_bear_798-Oct-09 12:31 
GeneralRe: Help with Constants Pin
harold aptroot8-Oct-09 12:34
harold aptroot8-Oct-09 12:34 
AnswerRe: Help with Constants Pin
Md. Marufuzzaman8-Oct-09 9:26
professionalMd. Marufuzzaman8-Oct-09 9:26 
AnswerRe: Help with Constants Pin
Luc Pattyn8-Oct-09 9:29
sitebuilderLuc Pattyn8-Oct-09 9:29 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:42
yogi_bear_798-Oct-09 9:42 
ok I changed it to

public const string DIAMONDS = "♦";

I have two lines of code thus far that utilize DIAMONDS

1: TempDeck[x] = TemDeck[x] + of + globalVar.DIAMONDS
2: Case globalVar.DIAMONDS

The first line of code was previoulsy working (or at least not erroring out). Now all references return the following error:

Member VDP.GlobalVar.DIAMONDS cannot be accessed with an instance referance; qualify it with a type instead. I had originally started out with public const string DIAMONDS but switched it after having other problems
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:55
yogi_bear_798-Oct-09 9:55 
AnswerRe: Help with Constants Pin
Christian Graus8-Oct-09 9:31
protectorChristian Graus8-Oct-09 9:31 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:33
yogi_bear_798-Oct-09 9:33 
GeneralRe: Help with Constants Pin
Christian Graus8-Oct-09 9:49
protectorChristian Graus8-Oct-09 9:49 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:53
yogi_bear_798-Oct-09 9:53 
GeneralRe: Help with Constants Pin
Christian Graus8-Oct-09 10:13
protectorChristian Graus8-Oct-09 10:13 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 12:35
yogi_bear_798-Oct-09 12:35 
AnswerRe: Help with Constants Pin
PIEBALDconsult8-Oct-09 10:48
mvePIEBALDconsult8-Oct-09 10:48 
GeneralRe: Help with Constants Pin
Luc Pattyn8-Oct-09 10:53
sitebuilderLuc Pattyn8-Oct-09 10:53 
GeneralRe: Help with Constants Pin
PIEBALDconsult8-Oct-09 10:57
mvePIEBALDconsult8-Oct-09 10:57 
GeneralRe: Help with Constants Pin
Luc Pattyn8-Oct-09 11:07
sitebuilderLuc Pattyn8-Oct-09 11:07 
GeneralRe: Help with Constants Pin
Henry Minute8-Oct-09 11:41
Henry Minute8-Oct-09 11:41 
GeneralRe: Help with Constants Pin
Luc Pattyn8-Oct-09 11:53
sitebuilderLuc Pattyn8-Oct-09 11:53 
GeneralRe: Help with Constants Pin
PIEBALDconsult8-Oct-09 16:26
mvePIEBALDconsult8-Oct-09 16:26 
GeneralRe: Help with Constants Pin
Luc Pattyn9-Oct-09 5:27
sitebuilderLuc Pattyn9-Oct-09 5:27 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 12:34
yogi_bear_798-Oct-09 12:34 
GeneralRe: Help with Constants Pin
Luc Pattyn8-Oct-09 12:43
sitebuilderLuc Pattyn8-Oct-09 12:43 

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.