- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 66
- Posts with Upvotes
- 52
- Upvoting Members
- 31
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re: > The Netherlands is the largest per CAPITA consumer of cofee averaging 2.4 cups of coffee per person per day. That is a poor/misleading figure. The annual per capita consumption of coffee in Finland is 9.6 kg dry weight compared to 6.7 kg in The Netherlands (and 3.1 kg in … | |
| Re: Not done it exactly this way, but long ago (10+ years) I was involved with a project that used MicroFocus COBOL, although I don't know COBOL. The existing code originated on some other platform and was being ported to Windows. My role was to write DLLs to provide a wrapper … |
I am using an Arduino to prototype a project in which the real time is important. My device has a real time clock and internet access. I have some NTP code I can use to get the current time in GMT and I can apply an offset for the timezone … | |
Re: The GetTickCount function retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days Your comment suggests FreeTimer.Interval is 30000. So you set TotalTime, and hence the gauge progress, to the number of milliseconds that have elapsed since the system was started, less 30000. … | |
Re: Without knowing what the program is supposed to do it is difficult to judge if it looks right. However there are one or two things worth commenting on regardless of that. First, I suggest you use meaningful variable names because c, s, t, n, p, f, h, and l tell … | |
| Re: Chris, a good technique to trace errors like this is to simply use a pencil & paper and manually follow the instructions in your code. Set & change the values of your variables as you work through the code and your errors should become apparent. Later you will no doubt … |
Re: Reverend Jim, is that mandatory? What about a standalone machine with no internet access? Or one with access to an internal network only? What are the claimed advantages of creating the domain account? | |
Kudos for the Favorite Tags and Favorite Forums options on the Finder menu. Are they new? I hadn't seen them before, but they are a significant improvement. They very much improve my view of the new design. Before I saw them I was drifting away but now I am more … | |
| Re: It is always a good idea to look at the source code in cases like this, if you have the VCL sources in your Delphi version. That way you can trace how the control responds to the double click. Basically what is happening is that TDirectoryListBox fires off the onDblClick … |
Re: I agree. Although I never posted a lot, I used to visit a few times each day and now I visit once every few days, with the interval between visits getting longer all the time. | |
Re: The Welsh, being inventive people, don't need guns to perform mass murders: [5 killed by fire in Prestatyn](http://www.digitaljournal.com/article/349392) That is of course unusual and I don't mean to suggest that mass murder - or murder generally - is commonplace in Wales, but I am not convinced that lack of guns … | |
Re: http://www.drbob42.com/examines/examin84.htm | |
Re: There is no in-built way to do it so you have to roll your own. There are 2 sides to this problem: To get the data as booleans rather than dates you could probably use `Calculated fields`. To display the data using checkboxes take a look at http://delphi.about.com/od/delphitips2009/qt/dbgrid-checkbox.htm | |
Re: A lot depends on your goals. What are you aiming at? Desktop v Mobile v Web for example can influence your choice. What about your target OS? Also important. Professional v personal developments may mean different choices. It is impossible to answer your question without knowing this sort of information. … | |
Re: If all you want to do is to launch the app then the easiest way is not to find it at all. Just lauch the EXE without specifying its path (for example, Notepad.exe rather than c:\blah\blah\blah\Notepad.exe) and let the OS find it for you. If the EXE is in your … | |
Re: I had a similar problem with my Tosh. I put the machine aside for a few weeks till I had time to look at it and when I came back to it there was no problem starting it. After that it would sometimes start and sometimes not. I have not … | |
Re: I don't see anything obviously wrong with your code so I would look at your data. For example, you check: if not VarIsNull(WS.Cells[X,3].Value) then but what about MillStyle:=WS.Cells[X,2].Value; Can `WS.Cells[X,2].Value` ever be null? What effect would it have if it were null? Also I suggest you step through this in … | |
Re: Think what the value of `List2` is in this line: Writeln(UserFile, Score[List2]); or here: Writeln(UserFile, Score[List2]); You don't initialize List2 to any known value and you never change it. | |
Re: Good that you have something working! That puts you ahead of the game already. Here are some comments on your code and your question. 1. Data encapsulation is an important part of OOP. You have many variables created in the interface var section. Only the hangman variable (the form) needs … | |
Re: There is a nice Marquee component at http://www.delphiarea.com/products/delphi-components/marquee/ It can scroll left or write. All you would need to do is handle its onWrap event and swap its direction, like this: procedure TMainForm.MarqueeWrap(Sender: TObject); begin if Marquee.BiDiMode = bdLeftToRight then Marquee.BiDiMode := bdRightToLeft else Marquee.BiDiMode := bdLeftToRight; Marquee.Reset; end; The … | |
| Re: The population in mid-2013 was England 53.9 (million) Scotland 5.3 Wales 3.1 N Ireland 1.8 source: http://www.ons.gov.uk/ons/rel/pop-estimate/population-estimates-for-uk--england-and-wales--scotland-and-northern-ireland/2013/index.html With 600 seats in parliament divided fairly among the population there would be 1 seat for every 106833 people. Based on this the allocation of seats to countries would be: England 505 Scotland … |
Re: You want a de-compiler rather than a disassembler. I have seen a few mentioned over the years but have never tried them so can't comment on how good they might be. Google should be able to find them. You could start with: http://delphi.about.com/od/devutilities/a/decompiling_3.htm | |
Re: I don't see anything wrong with this, assuming "'ADDR', 'PORT', 'PASSWORD'" is just dummy data to avoid publishing your real data, and that you enable the timer somewhere. I suggest you put a break point on the first line of both of these routines and step through the code line-by-line … | |
Re: Check if your development environment includes a profiler. You can get a lot of information from a decent profiler. This will help you identify bottlenecks and the profiler will take care of the timing issues for you. | |
Re: You are opening the file twice, once for writing & once for reading. The 2 commands you use are: fp=fopen("test_numbers.dat","w"); fp=fopen("./test_numbers.dat","r"); Perhaps you are trying to read the file in a different folder? Have you tried: fp=fopen("test_numbers.dat","r"); | |
Re: Your bookings record tells you who the booking is for but doesn't tell you what was booked. You need to have another table to cross-reference each booking with the rooms booked. Personally I would put the booking dates into that cross-reference table, so that you can more easily cope with … | |
Re: Start a new project. Add a status bar and set SimplePanel TRUE. Add a TWebBrowser (and set Align alClient). Add this for the form's onCreate event handler: procedure TForm2.FormCreate(Sender: TObject); begin Application.OnMessage := MyMessages; wb1.Navigate('https://www.google.com/'); // Or whatever site you want end; Add a private procedure to the form: procedure … | |
I am using the MySQL C API and having problems defining a stored procedure. MY SQL script works fine in MySQL Workbench but the same script fails in my own software. A test script which shows the problem is: SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA … | |
Re: A lot depends on how your matrix is defined. If you show the code you have so far, especially the matrix declaration, I'm sure you'll get some help. | |
Re: The Loan Arranger. You could use the Finance icon supplied with Delphi. Not very nice & just a pile of coins, but at least you have it already. |