Click here to Skip to main content
15,921,643 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How can I write a program about Call Logs?? Pin
sp04.tw28-Aug-05 18:15
sp04.tw28-Aug-05 18:15 
QuestionData grid Pin
Uberto28-Aug-05 4:56
Uberto28-Aug-05 4:56 
AnswerRe: Data grid Pin
Dave Kreskowiak28-Aug-05 5:03
mveDave Kreskowiak28-Aug-05 5:03 
Questionbinding a DataGrid Pin
microuser_200028-Aug-05 0:02
microuser_200028-Aug-05 0:02 
AnswerRe: binding a DataGrid Pin
Dave Kreskowiak28-Aug-05 3:20
mveDave Kreskowiak28-Aug-05 3:20 
GeneralRe: binding a DataGrid Pin
Oakman28-Aug-05 21:12
Oakman28-Aug-05 21:12 
QuestionArray of classes within a Class Pin
bonio5527-Aug-05 13:38
bonio5527-Aug-05 13:38 
AnswerRe: Array of classes within a Class Pin
bonio5527-Aug-05 15:40
bonio5527-Aug-05 15:40 
Helo, Only me again, from all of my random attempts of trying to find a soultion for this i found one so i thought i would post the solution.

when u define the array as a class you have to define it with a random figure i.e.

public Temp(0) as Sub_Class

then in the subroutine 'New' for the class "Sub_Class" you call a subroutine called create_X()

Public Test as new Temp_Class(8,1,2)<br />
.....<br />
.....<br />
<br />
Public Class Temp_Class<br />
.....<br />
public Temp(0) as Sub_Class<br />
.....<br />
    Private x_Value as integer<br />
    Private y_Value as integer<br />
    Private z_Value as integer<br />
.....<br />
Public Sub New(ByVal x_val, ByVal y_val, ByVal z_val)<br />
    ReDim Temp(Temp_Class.X)<br />
    x_value = x_val<br />
    y_value = y_val<br />
    z_value = z_val<br />
    Create_X()<br />
End Sub<br />
....<br />
Public Sub Create_X()<br />
    Dim temp_X As New Sub_Class<br />
    Dim n As Integer<br />
    Public Sub Create_X()<br />
    For n = 0 To Temp_Class.X<br />
        Me.Sub_Class(n) = temp_X<br />
    Next<br />
End Sub<br />
....<br />
....<br />
End Class<br />
<br />
Public Class sub_Class<br />
.....<br />
public Temp2(0) as Sub_Sub_Class<br />
.....<br />
Public Sub New()<br />
    ReDim Temp2(Temp_Class.Y)<br />
    .....<br />
    Create_Y()<br />
End Sub<br />
....<br />
Public Sub Create_Y()<br />
    Dim temp_Y As New Sub_Sub_Class<br />
    Dim n As Integer<br />
    Public Sub Create_Y()<br />
    For n = 0 To Temp_Class.Y<br />
        Me.Sub_Sub_Class(n) = temp_Y<br />
    Next<br />
End Sub<br />
....<br />
....<br />
End Class


this relies on the fact hta default values have been put into the sub_Class and Sub_Sub_Class Properties in the subroutine new() and also relies on the fact the initaliation 'Test' class being called with overload.

if this approach is then taken you are effectivly creating defualt values for thouse classes and by doesing so removes the problem of the computer bringing up Null References

Sorry if this isnt very clear but someone else might be able to write it up more clearly if they can understand what i mean.
QuestionHow can I connect WebCam to my Application Pin
deepak_rai27-Aug-05 6:29
deepak_rai27-Aug-05 6:29 
AnswerRe: How can I connect WebCam to my Application Pin
bonio5527-Aug-05 14:03
bonio5527-Aug-05 14:03 
QuestionPass image as argument in vb.net to Matlab dll Pin
sscome27-Aug-05 0:09
sscome27-Aug-05 0:09 
QuestionUsing dual processor machine for vb.net apps Pin
msali26-Aug-05 23:43
msali26-Aug-05 23:43 
AnswerRe: Using dual processor machine for vb.net apps Pin
Dave Kreskowiak27-Aug-05 6:02
mveDave Kreskowiak27-Aug-05 6:02 
QuestionGetting USB unique ID Pin
Dinakara K26-Aug-05 23:12
Dinakara K26-Aug-05 23:12 
AnswerRe: Getting USB unique ID Pin
Dave Kreskowiak27-Aug-05 6:00
mveDave Kreskowiak27-Aug-05 6:00 
GeneralRe: Getting USB unique ID Pin
Dinakara K28-Aug-05 20:10
Dinakara K28-Aug-05 20:10 
GeneralRe: Getting USB unique ID Pin
Dave Kreskowiak29-Aug-05 0:53
mveDave Kreskowiak29-Aug-05 0:53 
QuestionDataGrid...? Pin
_mubashir26-Aug-05 22:14
_mubashir26-Aug-05 22:14 
AnswerRe: DataGrid...? Pin
Sarvesvara (BVKS) Dasa27-Aug-05 1:53
Sarvesvara (BVKS) Dasa27-Aug-05 1:53 
QuestionCrystal Report 9 Pin
Jeeva Jose26-Aug-05 20:39
Jeeva Jose26-Aug-05 20:39 
AnswerRe: Crystal Report 9 Pin
Rizwan Bashir26-Aug-05 23:26
Rizwan Bashir26-Aug-05 23:26 
QuestionProgress Bar Pin
kenexcelon26-Aug-05 18:57
kenexcelon26-Aug-05 18:57 
AnswerRe: Progress Bar Pin
_mubashir26-Aug-05 20:15
_mubashir26-Aug-05 20:15 
GeneralRe: Progress Bar Pin
kenexcelon26-Aug-05 20:32
kenexcelon26-Aug-05 20:32 
GeneralRe: Progress Bar Pin
rwestgraham26-Aug-05 21:35
rwestgraham26-Aug-05 21:35 

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.