Please support our C# advertiser: Programming Forums
Views: 3086 | Replies: 4
![]() |
•
•
Join Date: Nov 2006
Posts: 49
Reputation:
Rep Power: 3
Solved Threads: 0
Hello there,
I have an array of 2 dimensional which i need to pass to a funtion,
but every time i try to send to the funcation "LoadScenario" it fails.
maybe my syntax is wrong,please take a look
Thanks Ahead
I have an array of 2 dimensional which i need to pass to a funtion,
but every time i try to send to the funcation "LoadScenario" it fails.
maybe my syntax is wrong,please take a look
Thanks Ahead
string[,] Vars = newstring[5,4]; Vars[0,1]="Calculos"; Vars[1,1]=" 1"; Vars[2,1]=" 2"; Vars[3,1]=" 3"; Vars[0,0]="General"; Vars[1,0]=" 4"; Vars[2,0]=" 5"; Vars[3,0]=" 5"; Vars[4,0]=" 6"; LoadScenario(Vars); ------------------------ privatevoid LoadScenario(string Vars1) { //do something }
he probably left off his method declaration
csharp Syntax (Toggle Plain Text)
private void LoadScenario( string[,] Vars ) { } //but if you only need one portion of the string in vars private void LoadScenario(string Vars) {} //then call like this.. //assume we are inside of a class at this point LoadScenario(vars[x,y]); //where x is some int within bounds //where y is some int within bounds
!!!!! WARNING YOUR COMPUTER MAY BE INFECTED WITH SPYWARE!!!! PAY AN OVER PRICED AMMOUNT TO HAVE SOMTHING FIXED WE PLACED THERE IN THE FIRST PLACE!!!!!!!!!
sound familiar, know how to block yourself and keep yourself clean.
_____________________
http://www.lavasoftusa.com/ -->adaware
http://www.safer-networking.org/en/index.html -->spybot S&D
http://www.javacoolsoftware.com/spywareblaster.html -->spywareblaster
http://www.javacoolsoftware.com/spywareguard.html -->spywareguard
_____________________
and dont forget to spread the reputation to those that deserve!
sound familiar, know how to block yourself and keep yourself clean.
_____________________
http://www.lavasoftusa.com/ -->adaware
http://www.safer-networking.org/en/index.html -->spybot S&D
http://www.javacoolsoftware.com/spywareblaster.html -->spywareblaster
http://www.javacoolsoftware.com/spywareguard.html -->spywareguard
_____________________
and dont forget to spread the reputation to those that deserve!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode