Gotchas when using Delphi Update

Rad Studio Delphi Development, Software development Concepts
Sometimes when you are programming using Embarcadero Delphi you will come up with a few Gotchas. These are not bugs but more as a pain. Initially you create an application in a debug mode while you are testing the code. You have a icon for the application making it look professional and just go to the release state. The icon may or may be what you expected. Your debug application has the correct icon but your release doesn't. Pretty strange but Windows keeps an icon cache. The simple thing would be to rename your executable and suddenly it looks good. You wonder why Windows would do that ? It is Windows and you have to live with that. Click on this link to see what else you can do to…
Read More

Terminating an Application when using Delphi

Rad Studio Delphi Development, Software development Concepts
Sometimes there are reasons to terminate an application due to unforeseeable issues and there has been a lot of talk how to handle this event. Let's go over a simple application and break down what needs to be done. Go to the code The initial code opens up a splash screen, displays it and finally releases it after a few moments. Splashscreen.Show; Splashscreen.Update; Sleep(2000); Splashscreen.Free; Application.Initialize; The application defaults are set with the title and the help file as well as creating the data module along with the login screen. Application.DefaultFont.Name := 'Arial'; Application.MainFormOnTaskBar := True; Application.Title := 'Application Name'; Application.HelpFile := ExtractFilePath(Application.ExeName) + 'Help.CHM'; Application.CreateForm(TDM, DM); Application.CreateForm(TfrmLogin, frmLogin); The application at this point will open up the login screen allowing the user to enter their information. The license is…
Read More

High number of adults unable to do basic mathematical tasks

News Items, Software development Concepts
High number of adults unable to do basic mathematical tasks Adults have had difficult times dealing with employment and career advancement but now there is proof that Adults cannot perform simple math. Participants were asked questions such as: "Suppose, upon your trip to the grocery store you purchase four types of tea packs: Chamomile Tea (US$4.60), Green Tea (US$4.15), Black Tea (US$3.35) and Lemon Tea (US$1.80). If you paid for all these items with a US$20 bill, how much change would you get?" Four in every ten adults in places like England, Canada, Spain and the US can't make this straightforward calculation even when they had a calculator to hand. Similarly, less than half of adults in places like Chile, Turkey and South Korea can get the right answer. The results clearly highlight how…
Read More

Using Delphi XML Mapper

Computer PC Tips - bits and bytes, Rad Studio Delphi Development, Software development Concepts
Using Delphi XML Mapper Embarcadero Enterprise Studio package contains a wonderful utility that can assist any Delphi developer with the ability of importing a XML document for the sole purpose of using it within a datagrid.  Displayed below is a simple SSH cheat XML document that was created using Excel and will be used. The purpose of this entire exercise to get the XML data into a clientdataset so it can be used in a datagrid.   XML Mapper is a stand-alone tool located in the bin folder or you can click on tools and you will see the item called "XML Mapper".  The tool allows any type of XML document file to be converted over to a data packet file (*.xml,*.cds), schema files (*.dtd,*.xdr,*.xsd), repository files (*.xrp) and transformation files…
Read More

What to do if your database seems slow

Software development Concepts, SQL Tips
What to do if your database seems slow Quite a few times during a business day or even after hours, you have noticed that your database requests or queries tend to be slow with the results.  This could be that your database has become bloated with constant usage.  There are a few things that the IT / DBA or you, can do to resolve these possible serious issues. Databases work almost like people, they tend to keep inactive data that uses disk space, poor design and even the over-indexing of tables which could be some of the reasons for poor performance to outright collapse. Step one - inactive data to archives. The first step is to research whether there is too much inactive data.  This is data that is no…
Read More