|
-
Feb 3rd, 2003, 06:40 PM
#1
Thread Starter
Addicted Member
Any Kinda Prog?
I was just wondering if theres any kind of program where you can load a lsit and on the next line put the same word. SO you laod a lsit and on the next line after each word it puts 123456 not beside it or anything but on the next lin? Well thx for the help
Thanks For The Help Guys 
-
Feb 3rd, 2003, 06:42 PM
#2
Thread Starter
Addicted Member
Re: Any Kinda Prog?
Or would it be hard to code one real fast? Thanks
Thanks For The Help Guys 
-
Feb 3rd, 2003, 08:38 PM
#3
Fanatic Member
you can just use instr() and a listbox
-
Feb 4th, 2003, 07:00 AM
#4
Thread Starter
Addicted Member
Thanks for replying do you or anyone else have some code or an example on how to do this? I appreciate it thanks
Thanks For The Help Guys 
-
Feb 4th, 2003, 03:00 PM
#5
Thread Starter
Addicted Member
Id really apprecaite some help here guys ...thanks
Thanks For The Help Guys 
-
Feb 4th, 2003, 03:04 PM
#6
Frenzied Member
Im not even sure what you are trying to do here. Can you try to explain?
-
Feb 4th, 2003, 03:10 PM
#7
Frenzied Member
Ditto what Tom said... we need more info... your description is foggy as hell...
-
Feb 4th, 2003, 04:56 PM
#8
Thread Starter
Addicted Member
Ok well mushroom knew but ok what I want to do is load a list to a list box like:
Item1-Abby
Item2-Aaron
Item3-Brian
and so on 1 word per line and when I load it in either the load event or on a seperate command button I want it to like double space the words and in between the words on the double spaced line put the word 123456 after each word on the next line? Well if u dont get something tell me what ya dont get and ill try really hard to do better well thanks guys
Last edited by _Vb_N00bie_; Feb 4th, 2003 at 05:03 PM.
Thanks For The Help Guys 
-
Feb 4th, 2003, 04:59 PM
#9
Frenzied Member
well
No one can read what the hey you're typing!
Please correct your typing errors before you post, that'll make it a lot easier for anybody else!
Cheers!
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Feb 4th, 2003, 05:04 PM
#10
Thread Starter
Addicted Member
Ya ok sorry I always type really fast then go over for mistakes but forgot to so sorry but I edited it
Thanks For The Help Guys 
-
Feb 4th, 2003, 05:08 PM
#11
Frenzied Member
well
so you want you output to be:
Item1
Abby
Item2
Brian
and so on ?
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Feb 4th, 2003, 05:14 PM
#12
Thread Starter
Addicted Member
Ok I want to load a list we'll say with numbers 0-1000 so it would be 1000 lines. And after each number I want to place the word "Hello" after each number so it would be
0
Hello
1
Hello
2
Hello
3
Hello
and so on with the word hello after each word in the list box(Will be 2000 lines when finished)... Any help/ideas will do and be much appreciated
Thanks For The Help Guys 
-
Feb 4th, 2003, 05:17 PM
#13
Frenzied Member
well
try this:
VB Code:
Open ("C:\MyList.txt") For Input As #1
Do Until EOF(1)
Line Input #1, Data
List1.AddItem Data
List1.AddItem "Hello"
Loop
Close #1
Is this what you want !?'
Cheers
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Feb 4th, 2003, 05:29 PM
#14
Thread Starter
Addicted Member
Re: well
Originally posted by vbNeo
try this:
VB Code:
Open ("C:\MyList.txt") For Input As #1
Do Until EOF(1)
Line Input #1, Data
List1.AddItem Data
List1.AddItem "Hello"
Loop
Close #1
Is this what you want !?'
Cheers
Well that code dont work vb dont recognize Line Input #1,Data ???Thx man
Thanks For The Help Guys 
-
Feb 4th, 2003, 05:50 PM
#15
Hyperactive Member
Well, either you have a really old version of vb, or you need to declare it/ take out option explicit(sp?).
-
Feb 4th, 2003, 06:19 PM
#16
Fanatic Member
You have to declare the variable 'data', before you can use it. I'll guess you know how to do that.
-
Feb 4th, 2003, 06:21 PM
#17
Thread Starter
Addicted Member
Originally posted by Mushroom Realm
You have to declare the variable 'data', before you can use it. I'll guess you know how to do that.
Yep I got everything to work great and thanks to everyone who helped out on this problem thanks
Thanks For The Help Guys 
-
Feb 5th, 2003, 03:23 AM
#18
Frenzied Member
Whoops
Forgot to declare Data, sorry
Cheers!
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|