User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Visual Basic help Page [1]  
EMCE
balls deep
89805 Posts
user info
edit post

I've used it before, but it was long ago. I have an assignment due next thursday, but am having a lot of trouble with a lot of things. I have a bunch of questions, so if anyone is willing to help me out for the long haul, please let me know. I have a book, and have been using online tutorials....haven't really helped too much. I'm waiting on the book that I originally ordered to actually come in the mail. Thanks

9/28/2005 6:14:26 PM

EMCE
balls deep
89805 Posts
user info
edit post

yeah, thanks

9/28/2005 9:10:53 PM

Aficionado
Suspended
22518 Posts
user info
edit post

i wish i knew vb too

9/28/2005 9:19:18 PM

Wraith
All American
27268 Posts
user info
edit post

I took it back when I was in high school. I don't remember much of the syntax but I am pretty good at programming in general. If it is conceptual stuff you need help with, I will see what I can do, but specific syntax and stuff I have no memory of.

9/28/2005 9:43:36 PM

EMCE
balls deep
89805 Posts
user info
edit post

I have it where it will get a .txt file, and put that .txt file into the text box.

now I need for the program to be able to read 2 columns of numbers, not to exceed 100 numbers in each column out of a .txt document

and then calculate the average for each column, the mean difference between each column. and output those numbers into their own .txt boxes

then do more stats which I still have to find the formula for.....

9/28/2005 9:50:35 PM

Excoriator
Suspended
10214 Posts
user info
edit post

damn that sounds easy as shit.

have you even used google yet?

9/28/2005 11:06:54 PM

EMCE
balls deep
89805 Posts
user info
edit post

all I found were tutorials

reading shit like that off the computer screen kinda hurts my eyes

it probably is easy as shit.....like I said, I haven't fucked with visual basic is years

9/28/2005 11:14:21 PM

HaLo
All American
14273 Posts
user info
edit post

how bout access?? if the text file is preformatted you could do that shit with excel or access real easy.

anyway if you need to do it in vb, we'd need to see your code

9/28/2005 11:43:05 PM

EMCE
balls deep
89805 Posts
user info
edit post

yeah, it has to be VB. I have version 6





Private Sub Command1_Click()
End 'ends program'
End Sub
--------------------------------------------------------------------
Private Sub command2_Click()
CommonDialog1.DialogTitle = "Load File" 'open search box'
CommonDialog1.InitDir = App.Path & "C:\" 'path to look for text file'
CommonDialog1.Filter = "Text Files (*.txt)|*.txt" 'only show text files'
CommonDialog1.ShowOpen 'show filename in open box'

filename_data = CommonDialog1.FileName 'rename text file'
Debug.Print filename_data

Txt_datafile = filename_data 'put file name in text box'


End Sub
-------------------------------------------------------------------------

about all I have so far

damn, I code like a 6 year old



[Edited on September 28, 2005 at 11:55 PM. Reason : ]

9/28/2005 11:47:06 PM

HaLo
All American
14273 Posts
user info
edit post

is this a school assignment or something else? second, are you actually looking to get the contents of the text file on the screen or do you just show the file path / name? once you have the file path you will open a text stream, then read each line from the file into the buffer, parsing into columns as you go. then you'll have arrays of data which you can then manipulate as you wish.

if you want actual code, I'd have to brush up on my VB skills and commands

9/28/2005 11:54:21 PM

EMCE
balls deep
89805 Posts
user info
edit post

yeah, it's for a psychology class of mine

and no, I don't need the file actually on screen, just the pathname for the 'calculate' button to refer to. I just need it for long enough to calculate the mean for each column, mean difference between the columns, the standard deviation, and a related samples t-test (stat that I still have to look up the formula for)

9/28/2005 11:58:55 PM

dakota_man
All American
26584 Posts
user info
edit post

use the designer to make it look like you want then go look at the code

it's not that bad

9/29/2005 8:49:13 AM

EMCE
balls deep
89805 Posts
user info
edit post

I've gotten pretty far, and am almost done

but I have another question if anyone is trying to help out

I can show the code......

9/30/2005 12:10:51 PM

 Message Boards » Tech Talk » Visual Basic help Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.