Search found 464 matches
- Mon Apr 19, 2010 6:42 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Number of days
- Replies: 9
- Views: 2594
Re: Number of days
Hi James Very interesting - many similar experiences. I wrote some software for an insurance company to illustrate a "whole of life" insurance product. I hand checked that the results of my calculations matched the supplied formulae. When I submitted my software I was informed that the cal...
- Thu Apr 15, 2010 11:09 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Openoffice's macros
- Replies: 2
- Views: 1004
Re: Openoffice's macros
Hi wzaf I can't troubleshoot your code as I am in a Linux environment but I can show you an ugly way of doing it. This code works for me - but it is in a utility that only I run so it doesn't matter that it is ugly. I use a file as a semaphore to tell when the process has finished. If you are desper...
- Wed Apr 14, 2010 1:02 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Number of days
- Replies: 9
- Views: 2594
Re: Number of days
Hi James Nice to discuss coding again. I have had to use inclusive dates often, especially in things like tax calculations. It applies when a day is either included or excluded and you are dealing with a period of inclusion or exclusion. If I start a job on 10 March and finish it on 11 March it has ...
- Tue Apr 13, 2010 1:10 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Number of days
- Replies: 9
- Views: 2594
Re: Number of days
Expanding on EMGs answer xBase date variables can be treated as integers and basic integer operations applied to them. They are the number of days since an arbitrary start up date. (Please note this is not the format in which they are stored in .dbf files) The number of days between date1 and date2 ...
- Thu Mar 25, 2010 10:42 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Convert HEX vector to image
- Replies: 11
- Views: 2590
Re: Convert HEX vector to image
Hi Gary, Antonio Nice translation of the original code. It might be worth looking at the logic of it because it may produce funny results if code meets "FF" in one of the tests - the corresponding value of nX1 or nX2 or nY1 or nY2 will not be set and will either be the value from the last ...
- Tue Mar 16, 2010 10:15 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: CSV to DBF
- Replies: 10
- Views: 2451
Re: CSV to DBF
Hi Aljoscha A CSV file is separated by commas not semi colons as in your data. I know that you set the DELIMITED option to a semi colon but the delimiter character is the character that encloses character fields. The character fields in your data are enclosed with double quotation marks which is the...
- Fri Mar 12, 2010 7:51 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Find first free number
- Replies: 12
- Views: 2181
Re: Find first free number
Hi James Nice to "talk" to you again. Sorry - what I wrote seemed to make sense at the time I wrote it, but on rereading it it isn't very clear at all. I have a key allocation table with one record per table. That record holds the name of the table (which doesn't change) and the last key a...
- Fri Mar 12, 2010 12:52 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Find first free number
- Replies: 12
- Views: 2181
Re: Find first free number
Hi James I thought you would be of a similar mind. My approach is rather like yours except I use a defined int per table rather than a name for my primary key bucket and go to that record of my key allocation table to get the next allocated key. Arguably less of a bottleneck in a really high data th...
- Thu Mar 11, 2010 10:38 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Find first free number
- Replies: 12
- Views: 2181
Re: Find first free number
Hi Marc I don't know how often item numbers are deleted but clearly your system can cope with item numbers that are not current. That raises the question why don't you just accept "holes" in the item number allocation and allocate a primary key. Obviously I don't know any of the issues sur...
- Thu Mar 11, 2010 10:22 pm
- Forum: FiveLinux / FiveDroid (Android)
- Topic: xProgrammer - help please
- Replies: 4
- Views: 1266
Re: xProgrammer - help please
The function I wrote will only work for labels because it calls a function in GTKMisc which is a parent of GTKLabel but not of GTKEntry. However there is a similar function for a GTKEntry but it controls horizontal positioning only (which is what I think you want) avaible from GTK+ 2.4 on. gtk_entry...
- Mon Mar 08, 2010 11:56 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Question re pdf.prg / pdf.ch
- Replies: 0
- Views: 281
Question re pdf.prg / pdf.ch
Hi all Are these self contained or do they depend upon other (possibly Windows specific) components? In other words would they be likely to run on Linux? The other (Linux) options would seem to be libHaru or wait for GNUpdf. Thanks for any light you may be able to shed on this. Regards xProgrammer
- Tue Mar 02, 2010 6:07 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Setting the archive bit / Tracking "processed" files
- Replies: 2
- Views: 480
Re: Setting the archive bit / Tracking "processed" files
Thanks Hua
Somehow I didn't see SetFAttr() despite looking.
Regards
(a slightly embarrassed) xProgrammer
Somehow I didn't see SetFAttr() despite looking.
Regards
(a slightly embarrassed) xProgrammer
- Tue Mar 02, 2010 12:47 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: A Database Design Question
- Replies: 7
- Views: 1807
Re: A Database Design Question
Hi James Yes, reading about roles is probably one of the antecedents of the idea. Pretty much all my code is OO. My code generator is OO and generates OO code. Although, at this stage, it could be held that the templates that the generator generates from are not. To give some idea, my application in...
- Tue Mar 02, 2010 12:23 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: A Database Design Question
- Replies: 7
- Views: 1807
Re: A Database Design Question
Hi Otto Nice to hear from you. An important issue that needs careful handling. In an emergency information may need to be accessed that would contravene what would normally be available to a doctor. My best way around this is to allow access after a screen that warns that if you continue your access...
- Mon Mar 01, 2010 11:45 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Setting the archive bit / Tracking "processed" files
- Replies: 2
- Views: 480
Setting the archive bit / Tracking "processed" files
Hi all I need to write an application that checks for any "new" files in a directory and then processes them. One possibility is to use the date and time stamp of the file and keep a record of when the scan for new files was last done. I was thinking that a better way might be to use the a...