Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion from C# to VB.NET
Message
De
18/04/2013 09:59:59
 
 
À
18/04/2013 09:41:35
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01571173
Message ID:
01571334
Vues:
29
>(1) What is the class of Tables ?

Tables is defined as this:
        ' Data dictionary
        Public Tables As New Tables
        Public TablesTemp As New Tables
And, as you can see, I have assigned another object to the same class for the suggestion for the copy.

>(2) How do you initialize it - some code please

You probably have seen it before, but here it is again:
    Public Class Tables
        Inherits System.Collections.Specialized.NameObjectCollectionBase

        Public Overloads Sub Add(ByVal Table As Table)
            BaseAdd(Table.Name, Table)
        End Sub

        Default Public Overloads ReadOnly Property Item(ByVal Title As String) As Table
            Get
                Return CType(BaseGet(Title), Table)
            End Get
        End Property

        Default Public Overloads ReadOnly Property Item(ByVal Index As Integer) As Table
            Get
                Return CType(BaseGet(Index), Table)
            End Get
        End Property

        ' Removes an entry with the specified key from the collection
        Public Sub Remove(ByVal tcKey As String)
            BaseRemove(tcKey)
        End Sub

        ' Removes an entry in the specified index from the collection
        Public Sub Remove(ByVal tnIndex As Integer)
            BaseRemoveAt(tnIndex)
        End Sub

        ' Removes everything
        Public Sub Clear()
            BaseClear()
        End Sub

    End Class
By assigning to TablesTemp first, I can get it to work for the four work process I have. So, I can access the site, do several hits, and I can see that after about 100 hits, that the first hit of each work process did its initialization properly. However, when I forced a reload of the data in memory, I had an error. This is the part I am trying to resolve right now.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform