Click here to Skip to main content
15,902,447 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Cannot import System.Windows.Media.Imaging and System.Windows.Forms or System.Reflection Pin
andycee16-Mar-09 8:09
andycee16-Mar-09 8:09 
GeneralRe: Cannot import System.Windows.Media.Imaging and System.Windows.Forms or System.Reflection Pin
Dave Kreskowiak16-Mar-09 9:40
mveDave Kreskowiak16-Mar-09 9:40 
QuestionArray Example Pin
StarTrekCafe15-Mar-09 19:03
StarTrekCafe15-Mar-09 19:03 
AnswerRe: Array Example Pin
Christian Graus15-Mar-09 20:55
protectorChristian Graus15-Mar-09 20:55 
AnswerRe: Array Example Pin
StarTrekCafe15-Mar-09 21:48
StarTrekCafe15-Mar-09 21:48 
GeneralRe: Array Example Pin
Christian Graus15-Mar-09 22:10
protectorChristian Graus15-Mar-09 22:10 
AnswerRe: Array Example Pin
StarTrekCafe15-Mar-09 22:16
StarTrekCafe15-Mar-09 22:16 
GeneralRe: Array Example Pin
Christian Graus15-Mar-09 23:26
protectorChristian Graus15-Mar-09 23:26 
These threads are very annoying to follow, because you keep replying to yourself instead of to me.

StarTrekCafe wrote:
then the book says about doing an array of an element, for each text box, then have a four collumn report.


OK, I see. So, it wants you to do an array for each textbox. That's a terrible solution, but I guess they are doing it to teach you about arrays. So you'd need an array of strings for each textbox, and then you would keep an index, so that you have to make sure that all the strings for record one, go in index # 1 for each array. This is the reason that a single array of structs is better, in the real world.

I would assume that any examples you find online will be similar to the one in your book, the best I can do is try to explain it. If you have four textboxes ( b/c you have four columns ), then you'd have four arrays, and a variable to keep the current index. Then you'd increment the index until it gets to your array size, and then print your report. This would be done in a loop, I guess. Then you'd create a new loop, and inside that loop, you'd print each line of your report. You'd just print a tab between the strings to get your four columns, I would expect.

I'd suggest your next step is to make a start, and if you need to post again, post some code and tell us where you're stuck.

Christian Graus

Driven to the arms of OSX by Vista.

QuestionArray Example Pin
StarTrekCafe15-Mar-09 18:10
StarTrekCafe15-Mar-09 18:10 
AnswerRe: Array Example Pin
Christian Graus15-Mar-09 18:42
protectorChristian Graus15-Mar-09 18:42 
AnswerRe: Array Example Pin
0x3c016-Mar-09 6:15
0x3c016-Mar-09 6:15 
Question[Message Deleted] Pin
taibaomemory15-Mar-09 16:54
taibaomemory15-Mar-09 16:54 
AnswerRe: A famous software company starcite searching for someone who is familiar with VB and .NET Pin
Christian Graus15-Mar-09 18:41
protectorChristian Graus15-Mar-09 18:41 
Questionusb sim reader with vb.net Pin
Member 300016215-Mar-09 5:14
Member 300016215-Mar-09 5:14 
AnswerRe: usb sim reader with vb.net Pin
Expert Coming15-Mar-09 5:48
Expert Coming15-Mar-09 5:48 
GeneralRe: usb sim reader with vb.net Pin
Member 300016215-Mar-09 6:44
Member 300016215-Mar-09 6:44 
GeneralRe: usb sim reader with vb.net Pin
Christian Graus15-Mar-09 10:14
protectorChristian Graus15-Mar-09 10:14 
GeneralRe: usb sim reader with vb.net Pin
Member 300016216-Mar-09 10:57
Member 300016216-Mar-09 10:57 
QuestionLoaderLock was detected Pin
rmedo15-Mar-09 2:46
rmedo15-Mar-09 2:46 
AnswerRe: LoaderLock was detected Pin
Dave Kreskowiak15-Mar-09 3:38
mveDave Kreskowiak15-Mar-09 3:38 
GeneralRe: LoaderLock was detected Pin
rmedo15-Mar-09 3:58
rmedo15-Mar-09 3:58 
GeneralRe: LoaderLock was detected Pin
Dave Kreskowiak15-Mar-09 8:39
mveDave Kreskowiak15-Mar-09 8:39 
Questiondatabase help Pin
StarTrekCafe15-Mar-09 0:53
StarTrekCafe15-Mar-09 0:53 
AnswerRe: database help Pin
Colin Angus Mackay15-Mar-09 2:57
Colin Angus Mackay15-Mar-09 2:57 
AnswerRe: database help Pin
StarTrekCafe15-Mar-09 16:14
StarTrekCafe15-Mar-09 16:14 

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.