Posts
 
Reputation
Joined
Last Seen
Ranked #296
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
98% Quality Score
Upvotes Received
66
Posts with Upvotes
52
Upvoting Members
31
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
15 Commented Posts
10 Endorsements
Ranked #180
Ranked #390
~88.2K People Reached
Favorite Tags
Member Avatar for Reverend Jim

> 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 …

Member Avatar for John_smith
10
21K
Member Avatar for Dalek Caan

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 …

Member Avatar for Jim_9
0
1K
Member Avatar for SalmiSoft

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 …

Member Avatar for rubberman
0
260
Member Avatar for Simon180

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. …

Member Avatar for rubberman
0
627
Member Avatar for Alyssa_3
Re: dev

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 …

Member Avatar for SalmiSoft
0
302
Member Avatar for Christi_1

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 …

Member Avatar for Christi_1
0
1K
Member Avatar for AmritaHasan11

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?

Member Avatar for Reverend Jim
0
1K
Member Avatar for SalmiSoft

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 …

Member Avatar for diafol
0
234
Member Avatar for Bo_1

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 …

Member Avatar for Bo_1
0
481
Member Avatar for webecedarian

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.

Member Avatar for SalmiSoft
0
601
Member Avatar for asif49

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 …

Member Avatar for weitau
0
7K
Member Avatar for abdoalghareeb
Member Avatar for SoftSoul6Co

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

Member Avatar for SoftSoul6Co
0
1K
Member Avatar for Bozlee

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. …

Member Avatar for SalmiSoft
0
144
Member Avatar for Simon180

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 …

Member Avatar for Simon180
0
227
Member Avatar for lmulloy

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 …

Member Avatar for rproffitt
0
244
Member Avatar for Orionizer

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 …

Member Avatar for Orionizer
0
439
Member Avatar for R3CK2

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.

Member Avatar for SalmiSoft
0
151
Member Avatar for Gobroski

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 …

Member Avatar for Gobroski
0
225
Member Avatar for Simon180

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 …

Member Avatar for SalmiSoft
0
370
Member Avatar for diafol

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 …

Member Avatar for diafol
0
270
Member Avatar for hefaz

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

Member Avatar for hefaz
0
135
Member Avatar for Simon180

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 …

Member Avatar for SalmiSoft
0
116
Member Avatar for Clearner123

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.

Member Avatar for Mayukh_1
0
326
Member Avatar for Dimitris_1

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");

Member Avatar for vegaseat
0
159
Member Avatar for Fiorentino01^

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 …

Member Avatar for SalmiSoft
0
241
Member Avatar for Simon180

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 …

Member Avatar for Simon180
0
2K
Member Avatar for SalmiSoft

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 …

Member Avatar for SalmiSoft
0
248
Member Avatar for pramudiyanto

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.

Member Avatar for SalmiSoft
0
89
Member Avatar for Mya:)

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.

Member Avatar for Mya:)
0
401