Results 1 to 12 of 12

Thread: 386 FileListBox Problems..

  1. #1

    Thread Starter
    Fanatic Member tim_l_012's Avatar
    Join Date
    Mar 2001
    Location
    Next to a Coffee Cup.
    Posts
    641

    Unhappy 386 FileListBox Problems..

    hi, I need to know how to get items from a filelistbox into a listbox.

    i am using VB3.0 16-bit, Im making a program for a 386. thanks for your help.
    /: Tim :\____________________
    \: VB, HTML, ASP, VBScript, QBASIC, JavaScript :/

  2. #2
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    ha ha funny... yeah like there is such a thing as VB3

    lol
    ok i assume that the code may be similar to current versions
    VB Code:
    1. For x = 0 to File1.ListCount - 1   'File1 is name of filelistbox
    2.      List1.additem file1.List(x)
    3. Next
    regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  3. #3

    Thread Starter
    Fanatic Member tim_l_012's Avatar
    Join Date
    Mar 2001
    Location
    Next to a Coffee Cup.
    Posts
    641
    ok, what if 'i wanted to save a peice of code in an encrypted text file. I have the decryption routines, but how do I gt VB3.0 to run it?

    I've heard about a replaceline function?? is that correct? thanks stuart.
    /: Tim :\____________________
    \: VB, HTML, ASP, VBScript, QBASIC, JavaScript :/

  4. #4
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi
    I dont really understand what u mean. The encryption process is usually based on XOR bitwise operations and does not require any fancy new controls that VB3 lacks. U say u have the decryption routines... are they simple text conversion? Do they not run on VB3????
    regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  5. #5

    Thread Starter
    Fanatic Member tim_l_012's Avatar
    Join Date
    Mar 2001
    Location
    Next to a Coffee Cup.
    Posts
    641
    I have code in a text box, such as:

    me.caption = time

    ok, that is what my friend has written in a txt file.
    how can I get it so that when you click command1, it makes me.caption = time or whatever it has in the textbox....

    thanks for you help.
    /: Tim :\____________________
    \: VB, HTML, ASP, VBScript, QBASIC, JavaScript :/

  6. #6
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hunh???
    You are losing me more and more here... are u saying that u want to know the code for putting time in a caption? or u want to read something from a file at runtime and act on that or what? it wouldnt be a decrypted VB3 file that u are trying to convert would it????? Well i think u will have a lot of trouble with that if u dont know the basics of setting captions etc.
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  7. #7

    Thread Starter
    Fanatic Member tim_l_012's Avatar
    Join Date
    Mar 2001
    Location
    Next to a Coffee Cup.
    Posts
    641
    ok. I have a encrypted text file containing code.

    - my program decrypts it.
    - it then gets whatever code is in the file and runs it.
    - then re-encrypts the file.

    I can do the encryption, but not the code running thing.
    thanks for your help so far..
    /: Tim :\____________________
    \: VB, HTML, ASP, VBScript, QBASIC, JavaScript :/

  8. #8
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Are u trying to tell me that your program reads a VB3 project file, decrypts it, makes an executable in another version of VB (or even in vb3) and then reencrypts it??? I dont think so Tim ... lol i just realised that that is the first time i have ever got to use that line on someone actually called Tim
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  9. #9

    Thread Starter
    Fanatic Member tim_l_012's Avatar
    Join Date
    Mar 2001
    Location
    Next to a Coffee Cup.
    Posts
    641
    ok, forget the encryption.

    all I want VB to do is run the code I have in a text file.

    if someone understands then please reply.

    Thanks,
    /: Tim :\____________________
    \: VB, HTML, ASP, VBScript, QBASIC, JavaScript :/

  10. #10
    Lively Member Jamagei's Avatar
    Join Date
    Jul 2000
    Location
    running from you. You freak.
    Posts
    69
    Have you thought about using a scripting control and doing the code in VBScript?
    Now, aren't you sorry you didn't just keep on scrolling?

  11. #11

  12. #12
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Sorry Lou
    Has to be at least two months between last post and yours to win the Raab award. And besides Juan already has it for the day. Better luck next time... king of the world...


    [Edit]
    Oh god Lou i can just about hear the turtle's little feet pattering over here. You run left and I'll go right. Should confuse him. Watch out for the chameleon-like tongue launching - it can be messy!
    [/Edit]
    Last edited by beachbum; Nov 16th, 2001 at 09:18 PM.
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width