Hi all,
I knocked up a project and decided to use App.LogEvent to log errors, so I set up the event log:
Call App.StartLogging(sUnusedFileName, vbLogToNT)
... So that I could then log event information (arbitrary strings) to the Windows NT Event Log by doing:
Call...
The DDF files you need are Data Dictionary Files... They define the structure of Btrieve/Pervasive.SQL files. Some of these are called:
Comment.DDF
Field.ddf
Fieldext.DDF
File.ddf
Index.ddf
.. Of which, you'll only need Field.ddf, File.ddf and Index.ddf. Ask the application vendor to supply...
I tried this in VB6... On Error Resume Next proceeds through the Unload statement with no problem. This was therefore just a bug in VB5.
Stephen King
Systems Developer and Support Analyst
Infoplex Ltd.
I noticed something a bit strange in our VB5 project today... What follows is a mock up example showing the problem....
I made a little mistake by forgetting to set a Form object, and ended up getting the classic Runtime Error 91 ("Object variable or With block variable not set"), which is fair...
Hi WastinAway,
In case you didn't manage to fix your error...
The line you highlighted line will not execute if the input file is empty, so I'm assuming your input file is corrupted or you have a blank line in it or something...
If you want to trap for specific errors then you're best bet is...
Hi Kim,
When you use the For Each ... Next statement, you'll iterate through each of the objects in the collection you specify... In this case, you'll get each of the objects on Form1.
Because you're only interested in TextBox objects, you should use a typeof expression to select only those...
I think the problem you've got is that when you're reading the values from your "word document" (most people would refer to the file you're using as a "text file"), you're not adding them together. Instead, you're putting each one into your txtruntotal text box and then writing over them again...
Just noticed this: These are the functions I think you should be using...
public static float Float.intBitsToFloat(int bits)
public static double Double.longBitsToDouble(long bits)
(Which were both available since JDK 1.0)
The Float and Double objects provide the very functions that you...
Just noticed something: In that extra-long line of bits, I've used b0 as the least significant bit, but the formula I copied in uses b1 as the least significant bit.
[I always call bit zero 'bit zero']
Anyway... I hope that helps you,
Stephen
p.s. If it's a double it'll be 64-bits long - the...
Ah, right: I see what your problem is... You can't do bit operations on floats in Java.
[If someone knows different, please correct me on that]
I wouldn't exactly call this a Big-Endian vs. Little-Endian problem, though - but that's not going to help you much. I'd say it's more to do with the...
PGM - portable graymap file format (apparently).
Anyway, it really doesn't matter what type of file it is... If you just want to put the whole thing into a string using stream I/O routines, you can do it like this...
rewind (pFile);
// allocate memory to contain the whole file.
buffer =...
Yes.... But it's a tad more tricky than in VB.
On the upside, you'll find out how windows actually works: By passing Window Messages around all over the place.
It's actually not too difficult: I found a good tutorial on Win32 programming at http://www.winprog.net/tutorial/
There's two main...
Thanks petersJazz: That is the way to select the branch levels... However, I wanted to make all this happen in a single SQL statement, because I can't store procedures on the MySQL database and wanted all of the levels of the tree together, so I could sort them. So here's how I did it...
Thanks r937. Good call: I'm wasting a table there.
Unfortunately, I'm not using Oracle, or SQL Server (in which I could probably write a procedure to build up this result set). I'm using PHP/MySQL.
Thanks petersJazz: I know how easy tree programming is... But I'm stuck with a PHP/MySQL system...
Well, I think it would be best to figure your way around the standard AWT first of all, (which even works on the Microsoft Virtual Machine). After that, maybe have a look at applets, which shouldn't be too difficult once you know about slider bars and buttons and the like (since you can use all...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.