Search:

Type: Posts; User: SmUX2k

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    2
    Views
    138

    Re: A WAN that never returns a 404 error

    As no-one has responded at all, I feel compelled to ask...AI = Artificial Intelligence?

    VB6 does not "sxxt" at AI, the coder is always the one at fault here. VB6 can't do the things Python or...
  2. Replies
    11
    Views
    378

    Re: [RESOLVED] Time and Date from memory

    There's 86400 seconds in a day, so dividing UnixTime by 86400 (then using Int, as it will remove any decimals) gives the number of days since the date. Multiplying this output by 86400 again and...
  3. Thread: Code To Share

    by SmUX2k
    Replies
    1
    Views
    124

    Re: Code To Share

    https://www.vbforums.com/forumdisplay.php?43-CodeBank-Visual-Basic-6-and-earlier

    There's posts in there explaining how to post to codebank. No executables, and I believe no DLLs (nothing...
  4. Replies
    11
    Views
    378

    Re: Time and Date from memory

    Also, as Dry Bone mentioned, the variable is a variant...declare your variable as Date before writing it to file and it'll not be a variant. It'll also hopefully read properly from memory.
  5. Replies
    11
    Views
    378

    Re: Time and Date from memory

    It may not help to suggest this, but storing datetime using UNIXTIME format is probably the most efficient and bulletproof way of storing the data...it would use a Long (so only 4 bytes) and would be...
  6. Re: Select a record in a ListView by selecting the same record from another ListView

    Don't forget to mark the post as resolved...if not now, later when you're sure it's resolved :-)
  7. Replies
    6
    Views
    264

    Re: Please Reset With ElRuffsta

    I decline the request, for numerous reasons. Shaggy, if you feel the need, message me privately to discuss it...I don't think you want me airing dirty laundry (not that there is anything...
  8. Re: Select a record in a ListView by selecting the same record from another ListView

    You're still not being specific enough. If the invoice is at the same position in both listviews, it should be fairly easy to do, but if they're not it means you have to iterate through the second...
  9. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    If you're using SQL, you should be able to set a unique key for each entry that increments.

    If you want random values so it isn't incremental, perhaps a new table for your barcodes so you can...
  10. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    It looks like you're not batch processing, so perhaps not so important...but one day, when you are, remember we all mentioned about the speed :-)
  11. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    Now you are talking about sub-second timings, you can stop using the time output and can instead use GetTickCount for a more accurate (but not perfect) millisecond value. The benchmarker I mentioned...
  12. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    The thing that bugs me here, and possibly my reason for suggesting faster ways to do the processing side of your code, is that I was working with similar issues myself a while back. I was processing...
  13. Replies
    23
    Views
    546

    Re: [RESOLVED] Listview loop

    Post #18...decision tree? Or did they come to that conclusion through if/then/else? :-P

    Seems a very boolean either/or statement to me, no need for a complex decision tree
  14. Replies
    23
    Views
    546

    Re: [RESOLVED] Listview loop

    Technically with an IF/THEN/ELSE statement, so like a computer's thought process :-)
  15. Re: Parsing a String to Obtain a Discontinuous Print Range

    Wqw did answer this to some degree in #17, but if you are looking for a complicated syntax parser that can handle all different kinds of syntax you may have to do some of that work yourself.

    Start...
  16. Replies
    23
    Views
    546

    Re: [RESOLVED] Listview loop

    If Not Sure Goto post 1

    (finds post #3)

    Nah, he's fine...even if these jokes were beyond him, he got what he wanted...and if he understood the fundamentals, he would have got some of it :-)
  17. Replies
    23
    Views
    546

    Re: [RESOLVED] Listview loop

    It doesn't...I tend to recognise the difference between IsRunning and IsNotRunning by decibel level...and it's a fairly quiet drier, especially as it's downstairs and I am usually upstairs. The...
  18. Replies
    23
    Views
    546

    Re: [RESOLVED] Listview loop

    It might be for you, but I never receive the event when it fires...I'm usually DoEvents elsewhere, and will call the function to see IsFinished=true or not when I can be bothered :-P
  19. Re: Parsing a String to Obtain a Discontinuous Print Range

    Why is "1to3" an invalid syntax? You might be expecting "1-3", but the validity of the syntax is as extreme as you want to allow your idiot users to get away with.

    Do what they ask...Print page...
  20. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    Moore's law has generally continued unabated...it slows, but it finds a way to continue. Originally it was a single core processor with a megahertz clock speed (I think the first PC I used at school...
  21. Replies
    23
    Views
    546

    Re: [RESOLVED] Listview loop

    And not just that, the fact that there are many ways to achieve the same goal...I wouldn't do it that way, for me it's:

    1) Throw wet laundry into basket
    2) Empty basket in drier
    3) Turn drier on...
  22. Replies
    23
    Views
    546

    Re: [RESOLVED] Listview loop

    Oh, if we're talking about ANY form of programming, I have to go back to the C64 as well...my first was a Commodore +4 (on a black and white tv) and I was playing around with code at ~8 years old (so...
  23. Replies
    23
    Views
    546

    Re: [RESOLVED] Listview loop

    I learned to code from Snake (or whatever its name was, I can't remember) in QBasic. I went into the code and learned what everything did, had no help from anyone on what I was doing, had no manuals...
  24. Replies
    23
    Views
    546

    Re: Listview loop

    We all generally knew it would...it's a fundamental element of all programming languages taught at the most basic level of learning to code, it's only second to "Hello world!". ...
  25. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    It seemed you were worried about the time the code was taking to process the data, so something like this will put things into better context and show you the bottlenecks so you can improve...
  26. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    Ah, if it is something that is a part of the process, ignore me on that :-)

    Here's something for you though, I think you'll find it useful...it's the most recent iteration of my benchmarking code....
  27. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    I'm not even sure what all that =LDR crap is, unless it is something you added for some reason...it seems to me all it is going to do is add to the length of the file. It seems like some sort of...
  28. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    So then yes you should be able to use the LoadFile function to load it into memory, perform the replace on it, then write it to a new file...there's no need to mess around with blockloading like...
  29. Re: problem with line input on a file, it never sees line by line, loads entire file

    What is the size of the input file? Is it under 100MB? If so, a mix of my LoadFile and the replace function (followed by a write of the entire variable in one go to the same or another file) should...
  30. Re: problem with line input on a file, it never sees line by line, loads entire file

    Notepad would load the entire file into memory and format it on-screen, it doesn't load one line at a time
  31. Re: problem with line input on a file, it never sees line by line, loads entire file

    I suspect that the method I suggested will be faster...you can see in the demo exactly how quickly it could get through many thousands of lines (I think it was managing over 50k per second for...
  32. Re: problem with line input on a file, it never sees line by line, loads entire file

    https://www.vbforums.com/showthread.php?531321-VB6-Huge-(-gt-2GB)-File-I-O-Class&p=4030890&viewfull=1#post4030890

    I mention this as it does exactly what you need, recognising different kinds of...
  33. Replies
    14
    Views
    5,509

    Re: [RESOLVED] decimal to binary

    My opinion is just one of many, but the question here isn't whether your question answers the question in THIS topic or not...it's whether it answers questions that may be asked in future. If the...
  34. Replies
    14
    Views
    5,509

    Re: [RESOLVED] decimal to binary

    I'd agree with you (no choice, you're moderator, but still I generally accept your decision :-P ) but have you looked into the history of the dead post resurrector in question? They're all posts on...
  35. Replies
    54
    Views
    1,823

    Re: new project - DB help needed please

    And putting those opinions in your signature is okay?
  36. Thread: code

    by SmUX2k
    Replies
    2
    Views
    259

    Re: code

    Not exactly what you asked for, but if you turned the 3 textboxes into an indexed array (txt(0), txt(1) and txt(2) as an example...very easy to do too, just give the name you want for the first...
  37. Re: [RESOLVED] Passing different types of variable into a function

    The array is not always empty, but always fine to redim it and lose what's inside...it's a public variable so many different parts of the app can access it, and it's generally "temporary" for use by...
  38. Re: Passing different types of variable into a function

    Still get the feeling that you missed something...I could be wrong, I often am, but it seems you've got pDataSource and pDataDestination set as Long...The destination for the CopyMemory is a Variant,...
  39. Re: Passing different types of variable into a function

    I gave it a go...didn't work :-P

    My assumption here is that the pData is the data to be added, which in this case (as mentioned above) is a byte array and will *always* be a byte array. As such,...
  40. Re: Passing different types of variable into a function

    The thing I am worried about here is that I'm putting *into* a variant array from a Long array (or it could be any number of the other numerical types)...I suspect what you're talking about is taking...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width