| Welcome to KOEI Warriors (Forum). We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to use many member-only features such as customizing your profile, sending personal messages, and voting in polls. As a member you will also have access the exclusive Members Only Section where you will be privvy to a wide range of KOEI Warriors Renders, OSTs and Videos. Registration is simple, fast, and completely free! Join our community! If you're already a member please log in to your account to access all of our features! |
| Visual Basic Help; Anyone who can help with VB? | |
|---|---|
| Topic Started: Nov 17 2008, 04:29 PM (90 Views) | |
| Sanada | Nov 17 2008, 04:29 PM Post #1 |
|
The truth is not based on your predications.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I really need help with this Project I am doing. I have done this before, but never while using File Handling, and never to a seperate form. I have gotten the actual thing working, all I need now is to seperate the display onto seperate lines of a Text box. This is the Output currently. To clarify, it is put into the correct form within the Dat file as shown here. my code is
to obtain the information, and then open the form, and then for the actual displaying I have
can anyone who knows Visual Basic tell me how to sort this? Edited by Sanada, Nov 17 2008, 04:36 PM.
|
![]() Signature and Avatar by my Nemesis ![]() Join my Kingdom Under Fire and Ninja Gaiden Cast Lists. | |
|
|
| Mr.Honda | Nov 17 2008, 05:34 PM Post #2 |
![]()
Actively Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Crap ... I'm so out of touch with VB. I used it semi-regularily for years and I may still have my resources boxed up somewhere, but I doubt I can provide any really helpful information. Its been awhile. Sorry, Rival
|
![]() Thanks to Shadow for the matching SW3 Tadakatsu set! ![]() Currently Playing: Dynasty Warriors Strikeforce (PSP) - Diao Chan Shin Sangoku Musou MULTI RAID 2 Demo (PSP) - Ling Tong
| |
|
|
| Sanada | Nov 17 2008, 05:39 PM Post #3 |
|
The truth is not based on your predications.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
damn... its alright Rival ![]() maybe this will help you remember a bit? in a normal variable, when displaying it, just put ";" at the end, and it will create a new line for it. When dealing with Multiple Forms and File Handling though, I am lost |
![]() Signature and Avatar by my Nemesis ![]() Join my Kingdom Under Fire and Ninja Gaiden Cast Lists. | |
|
|
| Mr.Honda | Nov 17 2008, 06:04 PM Post #4 |
![]()
Actively Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I'm trying to browse through MS Excel VB Editor to see if I can refresh my memory of some of this stuff, but as I recall there are some differences between VB as used in Office applications and the stand-alone VB program, which I have used both. However, I'm still finding it difficult to come up with a solution to your problem though That's why I gave up trying to include VB in the spreadsheet I made for tracking WO2 progress, I couldn't remember how to code things for it to do what I wanted it to do
|
![]() Thanks to Shadow for the matching SW3 Tadakatsu set! ![]() Currently Playing: Dynasty Warriors Strikeforce (PSP) - Diao Chan Shin Sangoku Musou MULTI RAID 2 Demo (PSP) - Ling Tong
| |
|
|
| Musou | Nov 25 2008, 10:59 AM Post #5 |
|
as in "Last Post By"
![]() ![]() ![]() ![]() ![]() ![]()
|
I learned VB last year at school so I'll give it a shot but I didn't get as advanced as using files so I don't think I'd be much help. Is that .dat thing an array? If so, have you tried a for loop where it's something along the lines of FOR i = 0 to 9 IF array(i) > array (i + 1) THEN temp = array(i + 1) array(i + 1) = array(i) array(i) = temp END IF Next i And you'd have to place some additional checks afterwards. If that doesn't help, here are some popular sorting algorithms (click on the main article links to get the pseudocode). I've heard of a couple of them, but I haven't actually learned any of them yet, though they might mean something to you. Sorry if that was no help, that's about my level of VB lol. |
![]() Star Ocean Universe | Forum Spoiler: click to toggle Woo! Suikoden! | |
|
|
| Sanada | Nov 25 2008, 11:22 AM Post #6 |
|
The truth is not based on your predications.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
oh, I figured this out last night, forgot to say. it was such a stupid mistake as well, it was just I forgot to change the Multiline Variable of the Textbox to True >_< and the .dat is a external file, using File Handling to save data to it, I have not got an array involved it in....well yet anyway, when I get to sorting the information I will need an array |
![]() Signature and Avatar by my Nemesis ![]() Join my Kingdom Under Fire and Ninja Gaiden Cast Lists. | |
|
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Archives · Next Topic » |




![]](http://209.85.122.85/static/1/pip_r.png)







2:59 AM Mar 22