Click here to Skip to main content
15,915,164 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: datagrid Pin
vengaqua10-Aug-06 18:31
vengaqua10-Aug-06 18:31 
GeneralRe: datagrid Pin
vbdotnetcoder200511-Aug-06 10:59
vbdotnetcoder200511-Aug-06 10:59 
GeneralRe: datagrid Pin
vengaqua16-Aug-06 22:12
vengaqua16-Aug-06 22:12 
GeneralRe: datagrid Pin
vengaqua10-Aug-06 18:34
vengaqua10-Aug-06 18:34 
QuestionCrystal Report Invalid Key Pin
iamalik9-Aug-06 20:09
professionaliamalik9-Aug-06 20:09 
AnswerRe: Crystal Report Invalid Key Pin
Dave Sexton9-Aug-06 22:10
Dave Sexton9-Aug-06 22:10 
GeneralRe: Crystal Report Invalid Key Pin
iamalik10-Aug-06 0:32
professionaliamalik10-Aug-06 0:32 
QuestionDo I need to delete the class? Pin
IlanTal9-Aug-06 19:33
IlanTal9-Aug-06 19:33 
I am writing an application which should have a whole bunch of classes. Depending upon the choices of the user, some of the classes will be actually used and others will not be used. Now I'm worried about garbage collection, since Visual Basic isn't Java.

Is my code below mistaken in that I need to call delete?
<br />
    Private Sub Test1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Test1.Click<br />
        Dim myScope As ScopeClass = New ScopeClass<br />
        Dim stat As Integer<br />
        stat = myScope.Init(Me)<br />
        stat = myScope.PerformScan(1)<br />
        myScope.Close()<br />
    End Sub<br />


If I do call a series of classes and I go from one class to another, is there an easy way to have a pointer to the last class I used so that I don't have to know specifically what it was at the point when I want to delete it?
If I can do this, please suggest a code snippet with the proper syntax to do it.

Thanks,
Ilan
AnswerRe: Do I need to delete the class? Pin
Dave Sexton9-Aug-06 22:05
Dave Sexton9-Aug-06 22:05 
GeneralRe: Do I need to delete the class? Pin
IlanTal10-Aug-06 3:30
IlanTal10-Aug-06 3:30 
GeneralRe: Do I need to delete the class? Pin
Dave Sexton10-Aug-06 21:35
Dave Sexton10-Aug-06 21:35 
AnswerRe: Do I need to delete the class? Pin
Dave Kreskowiak10-Aug-06 2:39
mveDave Kreskowiak10-Aug-06 2:39 
QuestionAccess DB - Some columns not updating Pin
draynumfa9-Aug-06 12:54
draynumfa9-Aug-06 12:54 
QuestionPlz can anyone help?? Pin
Paul Ferris9-Aug-06 10:39
Paul Ferris9-Aug-06 10:39 
AnswerRe: Plz can anyone help?? Pin
Christian Graus9-Aug-06 11:44
protectorChristian Graus9-Aug-06 11:44 
GeneralRe: Plz can anyone help?? Pin
Paul Ferris10-Aug-06 3:21
Paul Ferris10-Aug-06 3:21 
GeneralRe: Plz can anyone help?? Pin
Christian Graus10-Aug-06 10:59
protectorChristian Graus10-Aug-06 10:59 
QuestionHelp with set up - app. installlation Pin
alexfromto9-Aug-06 10:21
alexfromto9-Aug-06 10:21 
QuestionGreek Characters [modified] Pin
Harold_Wishes9-Aug-06 9:36
Harold_Wishes9-Aug-06 9:36 
QuestionGet source from a web page [modified] Pin
Grags9-Aug-06 9:27
Grags9-Aug-06 9:27 
Questionlistview item update Pin
eatwork9-Aug-06 8:09
eatwork9-Aug-06 8:09 
QuestionVB 2005 How to code an emailing function? Pin
Solly749-Aug-06 8:05
Solly749-Aug-06 8:05 
AnswerRe: VB 2005 How to code an emailing function? Pin
Christian Graus9-Aug-06 11:45
protectorChristian Graus9-Aug-06 11:45 
GeneralRe: VB 2005 How to code an emailing function? Pin
Paul Conrad9-Aug-06 12:13
professionalPaul Conrad9-Aug-06 12:13 
QuestionHow to add a select all button to a OpenFileDialog Pin
Glen Conaway9-Aug-06 7:24
Glen Conaway9-Aug-06 7:24 

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.