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
yeah, thanks
9/28/2005 9:10:53 PM
i wish i knew vb too
9/28/2005 9:19:18 PM
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
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 documentand then calculate the average for each column, the mean difference between each column. and output those numbers into their own .txt boxesthen do more stats which I still have to find the formula for.....
9/28/2005 9:50:35 PM
damn that sounds easy as shit.have you even used google yet?
9/28/2005 11:06:54 PM
all I found were tutorialsreading shit like that off the computer screen kinda hurts my eyesit probably is easy as shit.....like I said, I haven't fucked with visual basic is years
9/28/2005 11:14:21 PM
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
yeah, it has to be VB. I have version 6Private 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 fardamn, I code like a 6 year old [Edited on September 28, 2005 at 11:55 PM. Reason : ]
9/28/2005 11:47:06 PM
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
yeah, it's for a psychology class of mineand 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
use the designer to make it look like you want then go look at the codeit's not that bad
9/29/2005 8:49:13 AM
I've gotten pretty far, and am almost donebut I have another question if anyone is trying to help outI can show the code......
9/30/2005 12:10:51 PM