# **OLD** # [URL=http://s127.photobucket.com/user/yoda3ddd/media/codemap_zps4115ff7e.jpg.html][IMG]http://i127.photobucket.com/albums/p158/yoda3ddd/codemap_zps4115ff7e.jpg[/IMG][/URL] The Data Namespace Core Friend Module Func Public OkButton As Button Public CancelButton As Button Public ProgBar As ProgressBar Private Sub ProgressLoop() Do Func.ProgBar.PerformStep() Threading.Thread.Sleep(1) Loop End Sub #Region "Constants" Public Const DataRoot As String = "C:\AFormData\" Public Const IMG_PATH As String = "C:\AFormData\img" Public Const LoadImage As String = "C:\AFormData\img\codemap_zps4115ff7e.jpg" Public Const LINE_TERMINATOR As String = ">>" Public Const LoadImageX As Integer = 0 Public Const LoadImageY As Integer = 0 Public Const LoadBarFailedMessage As String = "Loading Bar Denied" Public Const ResizeMessage As String = "Current Form Resizing" Public Const NoCommandMsg As String = …

Member Avatar
Member Avatar
+0 forum 6

Please take a look in my code as below: Vector<Vector<String>> AllSubjects = new Vector<>() ; // PROBLEM IS HERE if ((AllSubjects = EMSSubjectDAO.SelectAllSubjectsByCourse(this.ActiveCourse.getCourseID())) != null) { SubjectTableModel = new DefaultTableModel(AllSubjects, SubjectTableHeader); SubjectTable.setModel(SubjectTableModel); //this.SubjectTable = new JTable(AllSubjects, SubjectTableHeader) ; } On the `// PROBLEM IS HERE` line, if I init `Vector<Vector<String>> AllSubjects = new Vector<>() ;`, the `new DefaultTableModel(AllSubjects, SubjectTableHeader);` will run fine. But if I write `Vector<Vector<String>> AllSubjects = null`, the `new DefaultTableModel(AllSubjects, SubjectTableHeader);` will erase all data in `AllSubjects` and nothing will be initialized I really want to understand why this happen? I guess if we dont init `Vector<Vector<String>>` …

Member Avatar
Member Avatar
+0 forum 3

Hello, is this how a constructor is created and initialized. I am getting an error; VB does not like the "New" what I am trying to do is to create a constructor with one argument and initialize its attribute. Public Sub New(ByVal newProdNumber As Long) intProdNumber = newProdNumber End Sub thanks

Member Avatar
Member Avatar
+0 forum 4

I'm new to MVC4 programming. I want to populate a **DropDownList** from a table's field but don't know how to, although I searched for relevant material from Internet but couldn't get some workable info. There are 2 tables **Software** and **Category** (showing the type of S/w e.g. Anti-Virus or Graphics or OS etc...). In Software table, `CategoryID` is in `smallint` form which has a *foreign key relationship* with the `CategoryID` in Category table (in which `CategoryID` and `CategoryName` are the only fields). Now while creating the `Create` view to add/upload a new software, I want that the `CategoryName` of all …

Member Avatar
Member Avatar
+0 forum 1

how/where to initialize a static private std::list member ?

Member Avatar
Member Avatar
+0 forum 2

i want to initialize my id column of my databse tables by 1 again when i empty the table..i tried this code but it is not working.. Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick 02 Dim i As Integer 03 04 i = DataGridView1.CurrentRow.Index 05 TxtId.Text = DataGridView1.Item(0, i).Value 06 TxtUsername.Text = DataGridView1.Item(1, i).Value 07 TxtPassword.Text = DataGridView1.Item(2, i).Value 08 09 10 [b]If DataGridView1.Item(0, 0).Value = vbEmpty Then 11 DataGridView1.Item(0, 0).Value=initialize 12 [/b] 13 14 End If

Member Avatar
Member Avatar
+0 forum 2

The End.