Click here to Skip to main content
15,903,201 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Newbie - User Selection Needed Pin
JayMar815-Feb-09 7:31
JayMar815-Feb-09 7:31 
QuestionUse of Timer in VB 6.0 Pin
mjrose14-Feb-09 4:34
mjrose14-Feb-09 4:34 
AnswerRe: Use of Timer in VB 6.0 Pin
Zaegra14-Feb-09 23:45
Zaegra14-Feb-09 23:45 
QuestionData in Datagridview Pin
ivo7513-Feb-09 20:20
ivo7513-Feb-09 20:20 
AnswerRe: Data in Datagridview Pin
Andy_L_J13-Feb-09 22:02
Andy_L_J13-Feb-09 22:02 
GeneralRe: Data in Datagridview Pin
ivo7513-Feb-09 22:26
ivo7513-Feb-09 22:26 
QuestionCreate Structure Dynamically Pin
Samir Ibrahim13-Feb-09 20:11
Samir Ibrahim13-Feb-09 20:11 
AnswerRe: Create Structure Dynamically Pin
Dave Kreskowiak14-Feb-09 1:08
mveDave Kreskowiak14-Feb-09 1:08 
In VB6, no, not at all.

In VB.NET, it's possible, but very rarely ever used. I suggest creating a DataTable instead.

Creating a structure at runtime is FAR more difficult that it sounds. You actually have to create the structure using CodeDom, treating it as if you were writing a VB.NET compiler, emitting MSIL code. A structure would be inefficient in this case because you can't reference it anywhere in your code, nor use any of it's members without further using Reflection, which is notoriously slow. Why? Because your structure doesn't exist at compile-time!


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim14-Feb-09 2:37
Samir Ibrahim14-Feb-09 2:37 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 2:43
sitebuilderLuc Pattyn14-Feb-09 2:43 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim14-Feb-09 3:14
Samir Ibrahim14-Feb-09 3:14 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 4:58
sitebuilderLuc Pattyn14-Feb-09 4:58 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak15-Feb-09 3:50
mveDave Kreskowiak15-Feb-09 3:50 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim15-Feb-09 19:41
Samir Ibrahim15-Feb-09 19:41 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak16-Feb-09 2:11
mveDave Kreskowiak16-Feb-09 2:11 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim16-Feb-09 3:48
Samir Ibrahim16-Feb-09 3:48 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak16-Feb-09 13:59
mveDave Kreskowiak16-Feb-09 13:59 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim17-Feb-09 5:51
Samir Ibrahim17-Feb-09 5:51 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim14-Feb-09 3:25
Samir Ibrahim14-Feb-09 3:25 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 4:54
sitebuilderLuc Pattyn14-Feb-09 4:54 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim15-Feb-09 19:46
Samir Ibrahim15-Feb-09 19:46 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn16-Feb-09 0:06
sitebuilderLuc Pattyn16-Feb-09 0:06 
QuestionSkipping Some queries and conditions Pin
jishbalan13-Feb-09 19:09
jishbalan13-Feb-09 19:09 
AnswerRe: Skipping Some queries and conditions Pin
Dave Kreskowiak14-Feb-09 1:04
mveDave Kreskowiak14-Feb-09 1:04 
GeneralRe: Skipping Some queries and conditions Pin
jishbalan14-Feb-09 5:07
jishbalan14-Feb-09 5:07 

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.