In Delphi XE7 there is an option called "Auto increment build number". I would like to have that. But whenever I build, the version number remains identical.
I do understand that compile will not change the number, only Build will change it.What to activate that feature?
Upto RS10.3 I used to use Andreas Hausladen DDevExtensions to set my version number in my project sources to be the same for all modules (bpl's/exe), but unfortunately Andreas has stopped updating his tool for RS10.4 and later.
Another advantage would be that having one central version number and (c) file is also a lot better in svn change management since I don't have to commit each and every .dproj file because of the version/build number change.
Just had to create these 2 files, set version info in the delphi dproj file to OFF, and then add the specific .rc file to the module's dproj where I want it to appear, in this case a minor delphi project:
I have an old Delphi codebase I have to maintain, lots of DLLs, some older than others. In some of these DLLs there is no version information in the Project Options dialog. The controls for adding a version are greyed out and I can't even add a version number by manually editing the .DOF file. How can I include a version number in these projects?
Check if the default .RES file exists in the project source location. Delphi includes the version number of the project in a .res file with the same name as the .dpr file. If the .RES file does not exist, the simplest way to recreate it is to add the $R *.RES compiler directive to the .DPR file, immediately after the uses clause.
I'm looking for a way to dynamically insert a number on the app's icon on the taskbar, so the user can know about how many tasks the apps has done so far. This would be dynamically, as soon as the app does a new task, it will increase the icon's number.
On my Excel 97 version, this value will be formatted as "General" by default and will be seen as a number. A customer with Excel 2007 ends up with the cell formatted as "Standard" and Excel appears to see it as a string (it's not right aligned.) Note that I am using the regional settings to format the number and that Excel appears to be using the default regional settings as well.
If the customer just types 2,5 into a cell it accepts it as a number and if he does a copy of the string '2,5' from the clipboard into a cell, it also gets accepted as a number. Does anyone know why the string value sent though the automation interface to Excel ends up as a non-number?
I have a Delphi XE project and I'm trying to change the version number of the program before building it with MSBuild. Version number information is located in the DPROJ file but if I change these values the version number does not change. I think the reason for this is that when you change version number in the IDE, Delphi saves the changes to both DPROJ and RES files.
Is there a way to compile the RES file from the command line with the changes in DPROJ file? I found this question which suggested saving the version number in an INC file and including that to the project but this feels a bit more complex solution compared to just making changes in DPROJ.
Yes you are right. Delphi keeps the version number in both project file and resource file. Unfortunately, resource files' structure is a bit complicated so it is not easy to update programmatically. When I came across this need, I ended up using a tool "SetVersion.exe" which did the job for me. It might help you as well. See this link.
It depends on what you mean by "can be converted to number". If your definition is that TryStrToFloat returns True, then the answer is no. If you're willing to give up some of the features of TryStrToFloat then the answer is yes, but you are going to have to implement it yourself - in assembler.
The reason I need this to be as fast as possible, is - I am processing a large text file, and need to generate some statistics on how much can be converted to numbers. I don't need to actually convert numbers, just need to know the percentage of the file that can be converted to numbers (integer, or floating point).
Should this support any number format which TryStrToFloat supports? E.g. '5.4E7', '543,543.647' or ' $0abc6'? Or are there restrictions? What about decimal and thousands separators? What about negative numbers? Negative exponents? The more flexible it must be, the slower it will become.
The current solution I have is forking a pdftk process, and parse its output. But this is quite slow, so I was wondering if I could find a good open-source pdf parser library for delphi (5...)... And it seems it doesn't exist.
So I wondered if I could find an open-source DLL that I could make use of from Delphi 5. But I couldn't find any neither. I stumbled upon iTextSharp but it is for .NET and I don't understand howto use it in a plain delphi5 program...
I was wondering if there is a component like the 'edit', but just for numbers so I can use the .value function in my code.My textbook says I must make a program, that when the user enters a number and clicks the execute button, the results of the functions must be determined. The functions are: Trunc, round, frac, sqr and sqrt.I have to enter the value into, what looks like an 'edit', but whenever I use the .value in my code, it gives me an error saying :Undeclared identifier: 'value'. Although it works when I use a 'SpinEdit'.Forgive me for being really thick, I do have a severe chest and sinus infection with a fairly bad fever, so my mind is somewhere else at the moment.Thanks!Oh, and by the way, I have also used the 'MaskEdit' component but it still gives me the same error
As part of processing card payments, before even attempting to process, I need to check and validate the card number to make sure it's valid. For this, I've encapsulated this validation in a record called TCardNumber. It does the trick for what it needs to do, tested with a Visa card and an Amex card. Since this is a sensitive process, I need to make sure I'm going about this right. A card number string can be implicitly passed to/from this record.
Finally, you should test your code using the official test suite for credit card numbers. I hope there is such a thing; if not, take the test suite from others who have programmed the same. But then, you can also just take their code as well, since it is probably better tested than your newly invented code. Don't reinvent the wheel.
If you remember from your OOP classes at Uni, you have probably heard about the Single Responsibility Principle.Now, your record is responsible for a number of different validations, which is generally a no-no.
Now you have an interface and a basic object encapsulating what does not change (the number) and abstracting away what changes. You should not try to have other helper methods until you know for sure that all of your validation code uses similar principles (and I have a vague recollection that they do not, I did this very thing in ASP ages ago).
Please note: Plain text e-mail (non-encrypted) is not secure and should not be used to communicate confidential, sensitive, and/or personal information. The confidentiality and security of information sent via e-mail cannot be guaranteed. Confidential, sensitive, and/or personal information includes, but is not limited to, your social security number, driver's license number, state identification card number, bank account number, credit card number, debit card number, medical information, etc. By submitting information via e-mail to this office, you hereby agree that none of the information contained in your communication is confidential, sensitive, or personal. You further agree that this office and the web hosting company shall not be held liable for any breach of confidentiality, breach of security, or similar cause of action resulting from use of e-mail with this office, including any liability for the negligent handling, use, or storage of information contained in your e-mail. Please call our office if you wish to provide sensitive information.
We just had to supply the missing element to make the compiler happy. When initializing bigger arrays, it can be sometimes hard to see whether you have supplied the right number of elements. To help with that, you layout the source file in a way that makes counting easy (e.g. ten elements to a line), or you can put the index of an element in comments next to the element itself.
The expert consensus approaches may serve as guidance when strict epidemiological estimations are impractical. It is a valuable resource as a basis for decision-making where experimental evidence is not available or when the subject is not easy to study otherwise [13]. This is especially the case in the complex area of resource utilization in mental health care [14]. The required number of psychiatric beds is still a matter of debate and attempts to find a consensus among experts have been limited to HICs [15, 16]. On the basis of expert opinion, Canadian and American organizations have recommended a target of 50 publicly funded psychiatric beds per 100,000 population [15, 17]. However, the recommendations do not specify how the experts arrived at their consensus estimates and do not consider the situation in LMICs [18].
Therefore, the aim of this study was to reach a global expert consensus on the minimum and optimal psychiatric bed numbers. We also aimed to explore factors that may be considered relevant for local planning.
Regarding the numbers that were requested, we did not expect normal distribution. Therefore, median values and IQR, as well as mean and standard deviation (SD), were calculated for each indicator. Median values and interquartile ranges (IQR) resulting from the first round were provided to panel members in order to reconsider their response in an effort to improve consensus. The consensus was considered to be reached if at least 85% of the responses from the last round fell between the first and third quartiles of the answers given in the first round [24]. Extreme outliers were retrospectively identified and excluded based on the 3*IQR rule [25]. Second round responses were also assessed by income group and WHO region.
aa06259810