Click here to Skip to main content
14,301,827 members
   

C#

 
AnswerRe: Getting exception message "Incorrect syntax near '(' " in C# web app PinPopular
Luc Pattyn28-Mar-19 23:39
professionalLuc Pattyn28-Mar-19 23:39 
GeneralRe: Getting exception message "Incorrect syntax near '(' " in C# web app Pin
OriginalGriff28-Mar-19 23:42
protectorOriginalGriff28-Mar-19 23:42 
GeneralRe: Getting exception message "Incorrect syntax near '(' " in C# web app Pin
Luc Pattyn28-Mar-19 23:47
professionalLuc Pattyn28-Mar-19 23:47 
GeneralRe: Getting exception message "Incorrect syntax near '(' " in C# web app Pin
GenJerDan29-Mar-19 1:39
memberGenJerDan29-Mar-19 1:39 
GeneralRe: Getting exception message "Incorrect syntax near '(' " in C# web app Pin
Eddy Vluggen29-Mar-19 2:56
mveEddy Vluggen29-Mar-19 2:56 
QuestionDebugging + MSTest + Multiple Startup Project question Pin
Super Lloyd28-Mar-19 19:59
memberSuper Lloyd28-Mar-19 19:59 
AnswerRe: Debugging + MSTest + Multiple Startup Project question Pin
Super Lloyd1-Apr-19 14:04
memberSuper Lloyd1-Apr-19 14:04 
QuestionLooks like C# does not support Global Variables Pin
Brian_TheLion27-Mar-19 23:43
memberBrian_TheLion27-Mar-19 23:43 
I'm re-sending this as I had sent it to the Java forum by mistake.

I just found out that you can't have global variables in C#. I think they are supported in other languages like C, C++, Python and maybe Visual Basic.Net.

The program I want to convert to C# has a lot of variables that need to be used in other parts of the program such as procedures. I know you can add variables within the curly brackets for a procedure but in many cases the procedure needs to know about a lot of the variables to function and give a result and the same procedures are used many times in the code. I could use classes but I don't think you can have use the same variable in more than one class.

I'll need to experiment a bit to see if there is anyway around this.

Brian
AnswerRe: Looks like C# does not support Global Variables Pin
Richard MacCutchan27-Mar-19 23:46
protectorRichard MacCutchan27-Mar-19 23:46 
AnswerRe: Looks like C# does not support Global Variables Pin
OriginalGriff27-Mar-19 23:57
protectorOriginalGriff27-Mar-19 23:57 
GeneralRe: Looks like C# does not support Global Variables Pin
Richard MacCutchan28-Mar-19 0:08
protectorRichard MacCutchan28-Mar-19 0:08 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 0:09
memberBrian_TheLion28-Mar-19 0:09 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 0:21
protectorOriginalGriff28-Mar-19 0:21 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 0:35
memberBrian_TheLion28-Mar-19 0:35 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 0:42
protectorOriginalGriff28-Mar-19 0:42 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 0:49
memberBrian_TheLion28-Mar-19 0:49 
GeneralRe: Looks like C# does not support Global Variables Pin
Luc Pattyn28-Mar-19 0:32
professionalLuc Pattyn28-Mar-19 0:32 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 0:41
memberBrian_TheLion28-Mar-19 0:41 
GeneralRe: Looks like C# does not support Global Variables Pin
Luc Pattyn28-Mar-19 0:51
professionalLuc Pattyn28-Mar-19 0:51 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 0:57
memberBrian_TheLion28-Mar-19 0:57 
GeneralRe: Looks like C# does not support Global Variables Pin
Luc Pattyn28-Mar-19 1:07
professionalLuc Pattyn28-Mar-19 1:07 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 1:31
memberBrian_TheLion28-Mar-19 1:31 
GeneralRe: Looks like C# does not support Global Variables Pin
Luc Pattyn28-Mar-19 1:37
professionalLuc Pattyn28-Mar-19 1:37 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 2:03
memberBrian_TheLion28-Mar-19 2:03 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 3:26
protectorOriginalGriff28-Mar-19 3:26 

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.