Click here to Skip to main content
15,909,530 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFile Type Pin
samira forooghi30-Sep-06 3:07
samira forooghi30-Sep-06 3:07 
AnswerRe: File Type Pin
Dave Kreskowiak1-Oct-06 14:42
mveDave Kreskowiak1-Oct-06 14:42 
QuestionMatrix Report Pin
microuser_200030-Sep-06 2:06
microuser_200030-Sep-06 2:06 
QuestionSharing Display Pictures in Messenger Pin
freefika30-Sep-06 1:09
freefika30-Sep-06 1:09 
Questionprivate variable not retaining its value Pin
jon-8029-Sep-06 22:23
professionaljon-8029-Sep-06 22:23 
AnswerRe: private variable not retaining its value Pin
Guffa29-Sep-06 23:08
Guffa29-Sep-06 23:08 
QuestionRe: private variable not retaining its value Pin
jon-8030-Sep-06 0:30
professionaljon-8030-Sep-06 0:30 
AnswerRe: private variable not retaining its value Pin
Guffa30-Sep-06 6:56
Guffa30-Sep-06 6:56 
That's better, now one can see what the problem is.

How could the intXPositions and intYPositions values used in the initDataSource method ever be anything other than zero? The object has to be created before you can set the properties, and the initDataSource method is called when the object is created. At the time you set the values of the properties it's too late for them to be used in the intDataSource method.

Now you create a data row for each row, but you create it after you have put the fields in the row, which means that you lose the reference to the row that contains the fields. What you will be adding to the table is an empty row. Also, as you don't create any row before the loop, you will be trying to add fields to a row that doesn't exist the first time. Create the row first, then add the fields to it.


---
b { font-weight: normal; }

GeneralRe: private variable not retaining its value Pin
jon-8030-Sep-06 8:42
professionaljon-8030-Sep-06 8:42 
Questionnetwork Pin
fatidarya29-Sep-06 19:54
fatidarya29-Sep-06 19:54 
AnswerRe: network Pin
Dave Kreskowiak1-Oct-06 14:44
mveDave Kreskowiak1-Oct-06 14:44 
GeneralRe: network Pin
fatidarya1-Oct-06 20:29
fatidarya1-Oct-06 20:29 
GeneralRe: network Pin
Dave Kreskowiak2-Oct-06 3:12
mveDave Kreskowiak2-Oct-06 3:12 
QuestionData Source name not defined and default driver specified Pin
bony_baba29-Sep-06 18:51
bony_baba29-Sep-06 18:51 
AnswerRe: Data Source name not defined and default driver specified Pin
Dave Kreskowiak1-Oct-06 14:46
mveDave Kreskowiak1-Oct-06 14:46 
QuestionHow to deploy a project? Pin
cstrader23229-Sep-06 17:37
cstrader23229-Sep-06 17:37 
AnswerRe: How to deploy a project? Pin
Dave Kreskowiak1-Oct-06 14:51
mveDave Kreskowiak1-Oct-06 14:51 
QuestionUnable to shut down windows with VB.Net App loaded. Pin
Dick Bellnier29-Sep-06 14:52
Dick Bellnier29-Sep-06 14:52 
AnswerRe: Unable to shut down windows with VB.Net App loaded. Pin
Dave Kreskowiak1-Oct-06 14:55
mveDave Kreskowiak1-Oct-06 14:55 
QuestionReading and renaming Excel Files Help Needed Pin
CraigBob29-Sep-06 13:36
CraigBob29-Sep-06 13:36 
Questionhow to reflect changes Pin
praveen kumar mahto29-Sep-06 3:09
praveen kumar mahto29-Sep-06 3:09 
AnswerRe: how to reflect changes Pin
Guffa29-Sep-06 3:27
Guffa29-Sep-06 3:27 
AnswerRe: how to reflect changes Pin
Kschuler29-Sep-06 10:33
Kschuler29-Sep-06 10:33 
Questioncombobox sort/index problem Pin
chrishowell29-Sep-06 1:43
chrishowell29-Sep-06 1:43 
AnswerRe: combobox sort/index problem Pin
Christian Graus29-Sep-06 10:47
protectorChristian Graus29-Sep-06 10:47 

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.