Search:
Type: Posts; User: SmUX2k
Search:
Search took 0.10 seconds.
-
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...
-
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...
-
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...
-
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.
-
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...
-
Don't forget to mark the post as resolved...if not now, later when you're sure it's resolved :-)
-
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...
-
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...
-
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...
-
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 :-)
-
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...
-
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...
-
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
-
Technically with an IF/THEN/ELSE statement, so like a computer's thought process :-)
-
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...
-
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 :-)
-
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...
-
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
-
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...
-
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...
-
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...
-
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...
-
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...
-
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!". ...
-
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...
-
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....
-
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...
-
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...
-
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...
-
Notepad would load the entire file into memory and format it on-screen, it doesn't load one line at a time
-
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...
-
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...
-
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...
-
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...
-
And putting those opinions in your signature is okay?
-
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...
-
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...
-
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,...
-
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,...
-
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...
|
Click Here to Expand Forum to Full Width
|