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

C#

 
GeneralRe: Adding to a dataTable Pin
perlmunger7-Jul-03 11:28
perlmunger7-Jul-03 11:28 
Generalcomponent configuration. Pin
Darkmatter7-Jul-03 3:20
Darkmatter7-Jul-03 3:20 
GeneralRe: component configuration. Pin
perlmunger7-Jul-03 11:43
perlmunger7-Jul-03 11:43 
GeneralWriting to the Output | Debug window Pin
albean7-Jul-03 2:51
albean7-Jul-03 2:51 
GeneralRe: Writing to the Output | Debug window Pin
Roland Bär7-Jul-03 3:13
Roland Bär7-Jul-03 3:13 
GeneralCrystal Reports 'Command' SetDataSource Pin
krisp7-Jul-03 1:49
krisp7-Jul-03 1:49 
GeneralArrays Pin
_cancer_7-Jul-03 1:21
_cancer_7-Jul-03 1:21 
GeneralRe: Arrays Pin
perlmunger7-Jul-03 11:58
perlmunger7-Jul-03 11:58 
Frankly, I haven't done a whole lot with multidimensional arrays in C#, however, I can say this--the syntax you are using looks really strange and I'm not sure what you are trying to accomplish. I don't know if the code you have provided here is just pseudo-code or the real thing, but as far as I can tell, you have all kinds of problems. Here's how I interpret your code, but with a more conventional syntax:
public class Class2
{
    private Class1[][] var;
    
    public Class2() // constructor
    {

        var = new Class1[9][];
        var[0] = new Class1[2];
        // var[0] now points to two Class1 objects.
        // The first is at var[0][0] and second at var[0][1]
        // So you can access the members of those objects
        // like this:
        var[0][0].Member1 = "Bob was here";
        var[0][0].Member2 = "Testing...testing";
        var[0][1].Member1 = "Is this thing on?";
    }
}

Looks to me like you just have a syntax problem. If you'll explain exactly what you are trying to do, I can help a little more. I am just trying to provide you with proper syntax here.

Good luck.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralRe: Arrays Pin
PeterMoon29-Jan-08 17:53
PeterMoon29-Jan-08 17:53 
GeneralC# COM+ Client/Server Pin
SpudgunDoogal7-Jul-03 1:05
SpudgunDoogal7-Jul-03 1:05 
GeneralRe: C# COM+ Client/Server Pin
Daniel Turini7-Jul-03 1:21
Daniel Turini7-Jul-03 1:21 
GeneralRe: C# COM+ Client/Server Pin
SpudgunDoogal7-Jul-03 1:38
SpudgunDoogal7-Jul-03 1:38 
GeneralRe: C# COM+ Client/Server Pin
Philip Fitzsimons7-Jul-03 2:53
Philip Fitzsimons7-Jul-03 2:53 
GeneralRe: C# COM+ Client/Server Pin
Giles7-Jul-03 3:05
Giles7-Jul-03 3:05 
GeneralRe: C# COM+ Client/Server Pin
SpudgunDoogal7-Jul-03 3:10
SpudgunDoogal7-Jul-03 3:10 
GeneralCounting a datatable Pin
totig7-Jul-03 0:46
totig7-Jul-03 0:46 
GeneralRe: Counting a datatable Pin
Philip Fitzsimons7-Jul-03 2:53
Philip Fitzsimons7-Jul-03 2:53 
GeneralRe: Counting a datatable Pin
totig7-Jul-03 3:10
totig7-Jul-03 3:10 
GeneralDatagrid Combobox column Pin
Rohit Kashikar6-Jul-03 23:44
Rohit Kashikar6-Jul-03 23:44 
GeneralRe: Datagrid Combobox column Pin
perlmunger7-Jul-03 12:16
perlmunger7-Jul-03 12:16 
GeneralRe: Datagrid Combobox column Pin
7-Jul-03 18:30
suss7-Jul-03 18:30 
GeneralWM_PRINTCLIENT message Pin
peenu6-Jul-03 23:15
peenu6-Jul-03 23:15 
GeneralPDF viewer / printer component or solution - for distributed software(don't wanna use Abobe's) Pin
Selector6-Jul-03 20:20
Selector6-Jul-03 20:20 
GeneralRe: PDF viewer / printer component or solution - for distributed software(don't wanna use Abobe's) Pin
Roland Bär7-Jul-03 3:22
Roland Bär7-Jul-03 3:22 
GeneralPutting Array data in a string then showing it in a label. Pin
eggie56-Jul-03 10:48
eggie56-Jul-03 10:48 

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.