Posts

Showing posts from March, 2014

Ctrl+Shift+F: In XE2, this is labeled as "Search -> Find in Files".

Ctrl+Shift+F: In XE2, this is labeled as "Search -> Find in Files". However, it doesn't do this function; instead, the IDE wants you to highlight, in source, the name of a visual-component and it will automatically flip to "Design-Mode" and highlight the component.  Pretty useful, but not as described. I'd rather do the "Search -> Find in Files" instead.  Was this behavior fixed in later versions of Delphi? http://www.youtube.com/watch?v=EJ9aJtpz5-I

New blog post on Subspace Cables: "Party like it's 1999".

New blog post on Subspace Cables: "Party like it's 1999". http://subspacecables.com/blog/2014/3/31/party-like-its-1999

Why text-fields expand when we use 'union' in a query?

Image
Why text-fields expand when we use 'union' in a query? can we keep them non-expandable even when we use 'union'??
Seeking some help - how can I embed an mp4 video into a Firemonkey app? I have included one in the project file and thought that would be sufficient but when I set the filename in a TMediaPlayer control and call the Play method I get 'file not found' ... Thanks !!

Talking about the pain when using generics in Delphi. :)

Talking about the pain when using generics in Delphi. :) http://delphisorcery.blogspot.com/2014/03/why-delphi-generics-are-annoying.html

Funny how they just did a global replace for "Delphi" with "Object Pascal". Does anyone remember Del... errrmm Object Pascal.Net?

Funny how they just did a global replace for "Delphi" with "Object Pascal". Does anyone remember Del... errrmm Object Pascal.Net? http://docwiki.appmethod.com/appmethod/1.13/topics/en/Conditional_compilation_(Object_Pascal)#Predefined_Conditionals

I wish we could use TypeInfo(T) in compiler directives inside of generics...

I wish we could use TypeInfo(T) in compiler directives inside of generics... Like {$IF TypeInfo(T).Kind = tkInterface}   some interface specific source {$ELSEIF TypeInfo(T).Kind = tkClass}   some objects specific source {$ELSE}   everything else {$IFEND} That way we could at least achieve some kind of folding without that insane code duplication that comes with the use of generics. Btw #Spring4D 1.0 will have a switch to enable folding for lists that contain objects or interfaces to achieve something that is similar to what the C# compiler does with generics for reference types.

Just released; thanks DelphiHaven for mentioning it.

Just released; thanks DelphiHaven for mentioning it. XE5 hotfix 6 is out for fixing an incompatibility with iOS SDK 7.1 and Xcode 5.1 http://www.delphifeeds.com/go/s/114319 http://www.delphifeeds.com/go/s/114319
Has anyone worked with SyncML and Delphi? is any open source component available?

Anyone knows how instruct to the Delphi IDE refresh the modified syntax highlight colors using OTA (Open Tools API)? the details are here http://stackoverflow.com/questions/9914559/how-instruct-to-the-delphi-ide-refresh-the-modified-syntax-highlight-colors-usin

Anyone knows how instruct to the Delphi IDE refresh the modified syntax highlight colors using OTA (Open Tools API)? the details are here http://stackoverflow.com/questions/9914559/how-instruct-to-the-delphi-ide-refresh-the-modified-syntax-highlight-colors-usin http://stackoverflow.com/questions/9914559/how-instruct-to-the-delphi-ide-refresh-the-modified-syntax-highlight-colors-usin
use the Unit IdHashMessageDigest to create Hash file!

Does anybody know what's going on with Devrace (fibplus)?

Does anybody know what's going on with Devrace (fibplus)? There is no xe5 support until now😕. I have to manage a big application and these is not funny!

Hey, Pascal

Hey, Pascal http://www.slashgear.com/nvidia-pascal-next-gen-gpu-platform-revealed-25322021
Exist an easy (or complicated) way to export all my IDE settings (like code templates, color settings, formatter, etc...) and import it to another Delphi XE installation on my laptop?

Anyone here successfully using XCode 5.1? Although I have the PAServer running and my dev machine does a test connection ok, trying to deploy an app fails with "wrapper init failed (null)". According to this page -> http://qc.embarcadero.com/wc/qcmain.aspx/qcmain.aspx?d=123133 <- it would appear this is an incompatibility with XCode 5.1. I am presently downloading 5.02 from https://developer.apple.com/downloads/index.action to see if that does the trick.

Anyone here successfully using XCode 5.1? Although I have the PAServer running and my dev machine does a test connection ok, trying to deploy an app fails with "wrapper init failed (null)". According to this page -> http://qc.embarcadero.com/wc/qcmain.aspx/qcmain.aspx?d=123133  <- it would appear this is an incompatibility with XCode 5.1. I am presently downloading 5.02 from https://developer.apple.com/downloads/index.action to see if that does the trick. http://qc.embarcadero.com/wc/qcmain.aspx/qcmain.aspx?d=123133

No "Welcome Page".

No "Welcome Page". I can't seem to locate the correct parameter for turning this off, when I'm specifying a Group-Project at the command-line. Specifically, when I use the "-np" option; the "Welcome Page" doesn't load, but neither does my project.  There seems to be some conflict with what this does? In reality, "-np" is No-Project && No-Welcome-Page... StackOverflow says "-np" == "No Project" http://stackoverflow.com/questions/2344394/how-to-automatically-load-a-project-when-starting-delphi EmbT says "-np" == "No Welcome Page" http://docwiki.embarcadero.com/RADStudio/XE5/en/IDE_Command_Line_Switches_and_Options Q: How do you load a project and the IDE with a single-click AND don't have a "Welcome Page". I'm trying to get rid of the "Welcome Page" as it takes about 60 seconds of "Application Not Responding" before it comes back. Which annoys me. htt

No "Welcome Page". I can't seem to locate the correct parameter for turning this off, when I'm specifying a Group-Project at the command-line.

No "Welcome Page". I can't seem to locate the correct parameter for turning this off, when I'm specifying a Group-Project at the command-line. Specifically, when I use the "-np" option; the "Welcome Page" doesn't load, but neither does my project.  There seems to be some conflict with what this does? In reality, "-np" is No-Project && No-Welcome-Page... StackOverflow says "-np" == "No Project" http://stackoverflow.com/questions/2344394/how-to-automatically-load-a-project-when-starting-delphi EmbT says "-np" == "No Welcome Page" http://docwiki.embarcadero.com/RADStudio/XE5/en/IDE_Command_Line_Switches_and_Options Q: How do you load a project and the IDE with a single-click AND don't have a "Welcome Page". I'm trying to get rid of the "Welcome Page" as it takes about 60 seconds of "Application Not Responding" before it comes back. Which annoys me. htt
Is there a way to get bigger TEdit on Android where Edit Custom style does not work?

How to declare type for a class procedure?

How to declare type for a class procedure? type   TTest = class     procedure Proc1;     class procedure Proc2;     class procedure Proc3; static;   end;   TProc1 = procedure of object;   TProc2 = ???;   TProc3 = ???;

Happens not often that I disagree with Uncle Bob :)

Happens not often that I disagree with Uncle Bob :) http://delphisorcery.blogspot.com/2014/03/sorry-uncle-bob-but-no.html

Hello!

Hello! So, I understand the concept of having interfaces only in your programs and I even quite agree with it. I agree with the testability of things. However, one thing is to understand and agree to the concept and another thing is applying the technique. That's where I am stuck. I don't know if I am just too used to classes, that may well be, but I need a bit of help. So these are my details. I have an interface: IContact = interface   ['{79D205DC-FC0E-45F0-A388-56CBBFBF204A}']     procedure SetFirstName(const Value: string);     function GetFirstName: string;     procedure SetLastName(const Value: string);     function GetLastName: string;     procedure SetBirthDate(const Value: TDateTime);     function GetBirthDate: TDateTime;     property BirthDate: TDateTime read GetBirthDate write SetBirthDate;     property FirstName: string read GetFirstName write SetFirstName;     property LastName: string read GetLastName write SetLastName;   end; Now I have a new class (I wil

Newbie XE5 question here (though long-time Delphi developer, from 1996 through 2001): I'm finding the editor really frustrating how you can click past the end of the line, and how the left and right arrow keys don't move you forward and backward lines when at the end/front of a line (eg position cursor at front of line, press left, would like to be at end of line above.)

Newbie XE5 question here (though long-time Delphi developer, from 1996 through 2001): I'm finding the editor really frustrating how you can click past the end of the line, and how the left and right arrow keys don't move you forward and backward lines when at the end/front of a line (eg position cursor at front of line, press left, would like to be at end of line above.) Surely this is a setting somewhere? I really don't recall if it was this way when I used to use Delphi 13 years ago or if I have just become accustomed to Visual Studio. I have looked through Tools/Options but can't find a relevant setting. Any suggestions? Thanks !

Well, I'm not making a virus though!!

Image
Well, I'm not making a virus though!!

Simple question:

Simple question: What is the best way to loop a dataset? for u:=0 to Ds.RecordCount-1 do begin          Ds.RecNo := u;          ... do stuff end; or ds.first: while not ds.eof do begin      //stuff     ds.next; end; I use the last one but i've seen tests in wich the first is faster... should it be?

Originally shared by marc hoffman

Originally shared by marc hoffman RemObjects C# is proudly sponsoring this week's episode of the super-awesome Accidental Tech Podcast.

Hi group

Hi group, Is there any version of RemObject SDK which can be used with Delphi XE 5.

Appmethod has launched.

Appmethod has launched. The customary 30 day trial version is available. Pricing has a few WTF points for those that want to have something enterprise internal. http://www.appmethod.com/pricing There is a wiki http://docwiki.appmethod.com/appmethod/1.13/topics/en/Main_Page and links to more stuff at the bottom of the web page linked in this post. The new community forums at  http://community.embarcadero.com/ accepts your oldschool forums username and pwd. http://www.appmethod.com/?cid=701G0000000tPUt&elq=b8390ce79b9f41c3b59c541b3530259b&elqCampaignId=1320
How to acces google calendar with my android app developed in delphi xe5?

I know that there is the String helper of .ToLower(), so could someone please explain to me the point to the String helper LowerCase() (http://docwiki.embarcadero.com/Libraries/XE5/en/System.SysUtils.TStringHelper.LowerCase), when it doesn't look at the string it is meant (IMO) be helping...

I know that there is the String helper of .ToLower(), so could someone please explain to me the point to the String helper LowerCase( ) ( http://docwiki.embarcadero.com/Libraries/XE5/en/System.SysUtils.TStringHelper.LowerCase ), when it doesn't look at the string it is meant (IMO) be helping... Example: Writeln('Nothing'.LowerCase('HELLO')); -> hello

Anyone Opera web browser fans here? Opera until version 15 used to have IRC client. Since new versions of Opera no longer haves IRC client, would anyone be interested in teaming up creating Opera-Like IRC client?

Image
Anyone Opera web browser fans here? Opera until version 15 used to have IRC client. Since new versions of Opera no longer haves IRC client, would anyone be interested in teaming up creating Opera-Like IRC client?
Can a Android Mobile Firemonkey App Open as quickly as a native Android App?

an app business kit

an app business kit http://www.google.com/ads/admob/businesskit/introduction/ http://www.google.com/ads/admob/businesskit/introduction

After a jetlag induced shaving incident Nick Hodges appeared at the ADUG Autumn Symposium without his trademark goatee.

Image
After a jetlag induced shaving incident Nick Hodges appeared at the ADUG Autumn Symposium without his trademark goatee. Symposium attendees were confused by this change in appearance with many not realising who he actually was. "I don't know who that was but I thought he was actually better than NIck Hodges," attendee Shane de Vandersomething was heard to say. Fellow professional Delphi goatee enthusiast Alister Christie of http://www.learndelphi.tv was distraught at this unexpected change in Nick's appearance. "I've been looking forward to comparing beards with Nick for years now," Alister complained angrily. "Finally we find ourselves in the same country and he doesn't even have a 5 o'clock shadow for me to rub up against." Nick tried to explain away this dramatic new image by claiming he was merely trying to fit in with his Australian audience, "my chin is as bare as Malcolm Groves head", Nick was overheard as saying.

D2007 question, for any who are old enough to have used it, and young enough to remember...

D2007 question, for any who are old enough to have used it, and young enough to remember... As the TStringList has no OwnsObjects property, is there a reasonable way to make sure objects are freed? Or to discover whether the list has any actual objects? (Big app, legacy code, is why I am asking. The trail is long....)

What better way to connect to a remote mysql host?

What better way to connect to a remote mysql host? I explain, i need to create an application that manipulate the table records of my website, CRUD, the database is mysql.  The desktop application would be made ​​in Delphi, and the database as said earlie,r would be remote mysql hosted on line, in my webhost.  Maybe Datasnap? How? Any video on this? An article? Any suggestions?  Thank you.

Why is stackoverflow.com called that? It means that if you are trying to look for answers about an actual stack overflow issue you can't find any because all you get is stackoverflow.com [rant over]

Why is stackoverflow.com called that? It means that if you are trying to look for answers about an actual stack overflow issue you can't find any because all you get is stackoverflow.com [rant over]

You are welcome to aswer http://stackoverflow.com/questions/22506581/why-x-dfm-is-missing-while-it-is-inside-package

You are welcome to aswer http://stackoverflow.com/questions/22506581/why-x-dfm-is-missing-while-it-is-inside-package http://stackoverflow.com/questions/22506581/why-x-dfm-is-missing-while-it-is-inside-package

JSON Parsers

JSON Parsers DBXJson, SuperObject, dwsJSON? Which is your poison? Has Dbx performance improved in XE5?

Hotfix 5 for RAD Studio, Delphi, C++Builder XE5 Update 2

Hotfix 5 for RAD Studio, Delphi, C++Builder XE5 Update 2 http://cc.embarcadero.com/item/29788 http://cc.embarcadero.com/item/29788

Thought it might be fun to start a code golf competition. Since this is a Delphi community what better to start off with than Pascal's triangle?

Thought it might be fun to start a code golf competition. Since this is a Delphi community what better to start off with than Pascal's triangle? Write a program that takes a positive integer n from the command line and produces n rows of Pascal's triangle. Example: c:\Pascal.exe 7 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 Entries must: Be written entirely in Pascal (no asm) Compile with the Delphi compiler Produce correct output for up to 35 rows of the triangle Entries must not: Rely on any external resource (data files, external programs, etc) The winning entry will be the one with the shortest source code measured in number of characters.

How to change the color of a TRectangle, ie.

How to change the color of a TRectangle, ie., using HSV? The samples I found wont apply with Firemonkey. Basically I would like to slide a trackbar and change its brightness or set the bright percent...
How to change the color of a TRectangle, ie., using HSV? The samples I found wont apply with Firemonkey. Basically I would like to slide a trackbar and change its brightness or set the bright percent...

Hi All

Hi All, I'm busy writing an app that is meant to collect configuration files from various routers and then commit them to subversion so that we have "change monitoring". The issue/problem I am having is that I am using TortoiseSVN as the application (svn.exe) to commit the config files, from my main app, but I would rather want to use the library files (dll) instead so that I can get "feedback" regarding the actions that took place. Has anyone done something like this before or have a suggestions? Many thx in adv.

Hi folks … Yesterday I gave a presentation about the new REST Client Library in Breda (The Netherlands). I have prepared a little iOS demo application which uses the Strava REST API. I'm trying to make it better so I can upload it and share the sources, but I have a little question for the Firemonkey / Livebindings experts.

Image
Hi folks … Yesterday I gave a presentation about the new REST Client Library in Breda (The Netherlands). I have prepared a little iOS demo application which uses the Strava REST API. I'm trying to make it better so I can upload it and share the sources, but I have a little question for the Firemonkey / Livebindings experts. I have a TListView which is bound to a ClientDataSet using LiveBindings. I have set it up so that the Item.Text displays the name of an Activity and the Item.LookupData points to the Id of an Activity. Now I was hoping to be able to get a hold of that Lookup value (the value of the ID) for the item the user clicked. Sadly in the OnItemClick even of my ListView I can't seem to figure out how to get the value of the ID for the clicked item. The AItem has a .Text value which I can use, but no .LookupData. I can us the .Text to do a locate in my DataSet, but that isn't 100% safe since there might be a lot of activities with the same name. Additionally it req

Is it possible to static link OpenSSL with Indy on Windows? Found this SO answer: http://stackoverflow.com/a/19696062 but I am not sure how to do number 1 on Windows:

Is it possible to static link OpenSSL with Indy on Windows? Found this SO answer:  http://stackoverflow.com/a/19696062 but I am not sure how to do number 1 on Windows: 1.compile/obtain static .lib/.a files for OpenSSL for your target platform(s) (static .a files for iOS are provided at Indy's Fulgan mirror). http://stackoverflow.com/a/19696062

Is it possible to highlight a specific line in active editor window just like Delphi IDE does when highlighting compiler errors?

Is it possible to highlight a specific line in active editor window just like Delphi IDE does when highlighting compiler errors? http://stackoverflow.com/q/22498243/666705?sgp=2

Memory leaks in TJSONMarshal fixable?

Memory leaks in TJSONMarshal fixable?  I have same problem, does anyone know how to solve Autor:Benjamin Wittfoth The last few days I was redesigning my storage entities for JSON handling. After some really good results and quite some work I was wondering why the memory is depleting so fast. So I activated fastmm4 and - Oo - really bad memory situation. So I tried to find any mistakes on my side - without luck. So I decided to write a tiny sample program to make sure that the mistake is on my side - unfortunately it seems that it is not. Can somebody please tell me why there are leaks of TMoveArrayManager, TDBXArrayList, TStringBuilder, TJSONString, TJSONObject, TJSONPair after executing this tiny piece of code? {code} procedure TForm4.Button1Click(Sender: TObject); var   _Marshal: TJSONMarshal;   _test:TTest;   _Strings:TStringlist; begin   _Test:=TTest.Create;   _Marshal:=TJSONMarshal.Create;   _Strings:=TStringlist.Create;   try     _Strings.Text:=_Marshal.Marshal(_test).ToString;  

I just added support for #Appmethod in the DITE http://code.google.com/p/delphi-ide-theme-editor/

Image
I just added support for  #Appmethod in the DITE http://code.google.com/p/delphi-ide-theme-editor/

JS XEPlusPack: Anyone running it? (VIRUS WARNING IN IT)

Image
JS XEPlusPack: Anyone running it? (VIRUS WARNING IN IT) I installed it, fired up Delphi and my Anti-Virus popped up with a "Heuristic" warning that it found a virus. I've seen this happen, when a virus maker uses a component that a legit program uses and they share a code-section with the same signature.  I wanted to find out if anyone is running this, saw the same error and ignored it.  http://jed-software.com/blog/?cat=35

IDE FixPack 5.4.1 shows 36.5% increase in BUILD speed under Delphi XE2 Update 4 HotFix 1 with a ~1million line project; from 25 seconds to only 16 seconds!

Image
IDE FixPack 5.4.1 shows 36.5% increase in BUILD speed under Delphi XE2 Update 4 HotFix 1 with a ~1million line project; from 25 seconds to only 16 seconds! I was really surprised to find this out and only recently realized that I didn't have it installed for this version of Delphi.  Honestly, I had thought it was just to fix bugs in the IDE. I was shocked to find out compilation is much faster and the IDE is a lot zippier. Hurray for IDE Fix Pack!! But, why doesn't EmbT implement these same fixes themselves? That's what's confusing to me. http://andy.jgknet.de/blog/ide-tools/ide-fix-pack-2009-10/

Wow, are the Embarcadero forums entering the 21st century? Log in with your edn account here: http://community.embarcadero.com/

Wow, are the Embarcadero forums entering the 21st century? Log in with your edn account here:  http://community.embarcadero.com/ http://community.embarcadero.com

ADO - Stored Procedure - Generated SQL

ADO - Stored Procedure - Generated SQL Is there a way to intercept and view the generated SQL of a stored procedure call? We have a strange date off by 2 issue. #sql

How to also have the problem 'out of memory' in Rad Studio XE. I'm using now XE5 but did also have the problem in XE2-XE4. When I compile 4-7 times a project group with many projects, I get the problem.

How to also have the problem 'out of memory' in Rad Studio XE. I'm using now XE5 but did also have the problem in XE2-XE4. When I compile 4-7 times a project group with many projects, I get the problem. There is a lot of reports on Quality Central. But I can't find a solution.

Need 8-bit strings on Delphi mobile compiler?

Need 8-bit strings on Delphi mobile compiler? Please cast your +10 votes for QC 119501 http://qc.embarcadero.com/wc/qcmain.aspx?d=119501

I try to port a component package made with Delphi 2007 to Delphi XE5. Got this:

I try to port a component package made with Delphi 2007 to Delphi XE5. Got this: [dcc32 Fatal Error] AttracsComponents2007.dpk(70): E2202 Required package 'DbxDynalinkDriver' not found. Any hint what to do ?
Hi everyone, I wanna to control bluetooh in IOS ( My project is connect into Bluetooth SPP). I build success in android with Androidapi.JNI.BluetoothAdapter. But not build in IOS.

Hello all!

Hello all! I'm sure some of you will have seen me around SO and the official forums in the past. My names Scott, and I've been focused on Delphi since late 2010 (though I've made small projects in it back as far as 2005). I've been working with Firemonkey primarily for the past 2 years but I'm moving between VCL a little more now. I've avoided Google+ in the past but figured that this'd be a good place to hang out and discuss development ideas :)
Ok, I was trying to avoid install Delphi 7 on this machine (I've already installed XE5).   However, Delphi 7 is installed on my old XP machine, which will be retired soon .  I need Delphi 7 just in case I need to look at old code.    Has anyone installed Delphi 7 AFTER installing XE5?   I've done it the other way around, and it works fine.

Blog post "Migrate Legacy Windows XP Applications Now" at http://blog.marcocantu.com/blog/migrate_legacy_xp_app.html

Blog post "Migrate Legacy Windows XP Applications Now" at http://blog.marcocantu.com/blog/migrate_legacy_xp_app.html http://blog.marcocantu.com/blog/migrate_legacy_xp_app.html

Wow. Such sample. Much informative.

Wow. Such sample. Much informative. http://docwiki.embarcadero.com/RADStudio/XE5/en/E2021_Class_type_required_(Delphi)
Any idea on how to add a drop shadow effect to a FireMonkey form? Using styles maybe?

Hello all

Hello all, I post here an useful link for novice Delphi programmers - and probably for me too. :) http://docwiki.embarcadero.com/CodeExamples/XE5/en/Code_Examples_Index Every time I think I know everything about Delphi programming... The facts are simple... I'm not right. :)  My favorite programming language is growing and evolving constantly. From "Turbo pascal" and Delphi 1.0 to the XE5 - this journey has more and more potentialities and comfort. http://docwiki.embarcadero.com/CodeExamples/XE5/en/Code_Examples_Index

I have a Delphi 7 product with quick report in Hungarian Hebrew English.

I have a Delphi 7 product with quick report in Hungarian Hebrew English. If i choose the font with SCRIPT WESTERN Hungarian is OK if i choose font with SCRIPT HEBREW the Hebrew is OK.But not both!!!! I would like to change the FONT SCRIPT on RUN TIME how to do it? Or any other solution good for BOTH languages

Originally shared by Lars Fosdal

Image
Originally shared by Lars Fosdal This looks irrelevant to my napping! Snurre is not overly impressed with my new reading material from Nick Hodges.  Me? I rather enjoy it :) http://www.amazon.com/Coding-Delphi-Nick-Hodges/dp/1941266037 #delphi   #book
Is there a report designer for FastReports that can be handed out to our end users? I have been looking but so far have come up empty. I used to have the one for Rave 5.0, but that was a while ago and I can't find the code for it.

Heres an interesting one......

Heres an interesting one...... I am upgrading some unit testing from XE2 to XE5.  Most things are working and apart from a couple of hiccups generally with code changes not being tested (my fault, its my code after all) I've not found anything to concern me. However - I have changed the code being tested from using Containers.TObjectList to Generics.Collections.TObjectList.  Code wise its a minor thing and operationally the component appears to work as before. BUT there appears to be an odd case of memory addresses being reused now.  I am getting a test failing because I am creating a list of objects, then testing the clear and reset code.  The code clears the objectlist, the contained object destructors are fired and then the component resets to a blank state.  This involves resetting a bunch of stuff to default values and creating and storing a new instance of one of the contained objects. NOW (keep up here) I am testing for the address of the newly contained object changing, I

HTML Component Library updated.

HTML Component Library updated. What's new: Unicode support for non-unicode delphi (D6-D2009). FM support for Delphi XE4. HtPanel can be transparent when placed on other HtPanel. Transition (animation) for shadows (see Text flow page in demo). Rowspan, bgcolor and bordercolor attributes in tables. Win-32 Demo updated. Registered users will receive update soon. http://delphihtmlcomponents.com http://delphihtmlcomponents.com/welcome.html

WITH IS EVIL!

WITH IS EVIL! God damn it, I know it makes code easier to type, but its hard to read and maintain.  Get rid of the bloody thing completely! Of course, I'm even more cross because this is some of my very own code I am complaining about, I really don't know why I used a with, the block was only half a dozen lines and just confused matters. Whilst upgrading the code to remove the Containers unit (its not supported on NextGen platforms, so I have to make things work with Generics.Collections instead, bye bye D7 support for this code) and refactor a couple stupidities in my original design (they always creep in, don't they) I ended up with two class members of the same name.  The with block then looked OK but I was in fact not access the member I thought I was.   I wasted a morning stepping and debugging a stupid error that would have been obvious had I avoided the WITH block.  In fact the error would never have happened if I hadn't used it in the first place. Now why the he

When trying to edit the SQL property on a TpFIBDataSet component I get:

When trying to edit the SQL property on a TpFIBDataSet component I get: "Resource SynEditWrapped not found." The SynEdit component is installed in Component -> Install Packages. I have added the SynEdit source to my Library Path. The appropriate SynEdit BPL's are also in my search path... Am I missing anything? I am using Delphi 2007.

Just realized:

Just realized: For me the most dangerous thing in ARC is the fact that you can never rely that a destructor gets called when you call Free. It is twice as dangerous because Embarcadero are advertising "debug mobile apps on Windows", which is impossible because ARC is missing on the Windows platform and therefore very different behaviour can occur. Consider this code: unit uFreeTest; interface uses   System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,   FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Layouts,   FMX.Memo; type   TForm1 = class(TForm)   public     FSomeObject: TObject;     procedure InitializeNewForm; override;   end; var   Form1: TForm1; implementation {$R *.fmx} type   TMyObject = class   public     [weak] Console: TMemo;     destructor Destroy; override;   end; destructor TMyObject.Destroy; begin   Console.Lines.Add('TMyObject.Destroy');   inherited; end; { TForm1 } procedure TForm1.InitializeNewForm; var

Looking for TSynAnySyn, can't find it anywhere >.

Looking for TSynAnySyn, can't find it anywhere >.< anyone happen to have a version that works with the unicode version of SynEdit available on sourceforge? Thank you!

Looking for TSynAnySyn, can't find it anywhere >.< anyone happen to have a version that works with the unicode version of SynEdit available on sourceforge?

Looking for TSynAnySyn, can't find it anywhere >.< anyone happen to have a version that works with the unicode version of SynEdit available on sourceforge? Thank you!
Is there any Hints/Tooltips component for FireMonkey? How does one add a tooltip to a button in a FireMonkey app?

Which XML parser?

Which XML parser? I'm looking for an XML parser to use instead of the windows one. Any recommendations?

Is there any way to embed a custom font in a FireMonkey app? I need to use a certain font that might not be installed on the user's system. Can fonts be embedded in FireMonkey styles?

Is there any way to embed a custom font in a FireMonkey app? I need to use a certain font that might not be installed on the user's system. Can fonts be embedded in FireMonkey styles? I saw this thread:  http://stackoverflow.com/questions/21433459/firemonkey-adding-a-font-from-resource-to-memory-and-using-it  and apparently there is no solution for this.  Anyone has a solution? http://stackoverflow.com/questions/21433459/firemonkey-adding-a-font-from-resource-to-memory-and-using-it

Any one has tried Pas4Mobile?, it's an IDE based on Lazaurs and Free Pascal to Develop iOS applications, but it's work only on Mac OS

Any one has tried Pas4Mobile?, it's an IDE based on Lazaurs and Free Pascal to Develop iOS applications, but it's work only on Mac OS, http://pas4mobile.com/ http://pas4mobile.com

Bluetooth discovery on Android with Delphi - Chee Wee's blog: IT solutions for Singapore and companies worldwide

Bluetooth discovery with BroadcastReceiver plug-in for the Delphi IDE http://chuacw.ath.cx/blogs/chuacw/archive/2014/03/06/bluetooth-discovery-on-android-with-delphi.aspx
Accessing local files on a MAC. I am having fun trying to access a file that is in the same folder as my FireMonkey Mac application. Using the same code that works for the PC fails on the Mac because regardless of what folder the program physically resides in, when it runs it thinks it's in a series of sub folders. Those folders are defined in the deployment manager, but changing then makes the build fail. I have searched for an answer and found none. Is there a secret that one has to do in order to access the folder that the program actually resides in, besides removing the appended path information added by the deployment manager? I am thinking that for some reason I am not getting a full deployment and I am getting more of a development deploy? Any thoughts. I am using the basic extractfilepath(paramstr(0)) to get the path of the program. Is there a better way to do it on a Mac?

A major update for the TMS Component Pack (http://www.tmssoftware.com/site/tmspack.asp ) is available now. In this major update v7.3, several new components are added, TAdvStringGrid v7.4 is added and several new features & improvements to existing components.

Image
A major update for the TMS Component Pack ( http://www.tmssoftware.com/site/tmspack.asp ) is available now. In this major update v7.3, several new components are added, TAdvStringGrid v7.4 is added and several new features & improvements to existing components. - New: TAdvIPEdit: IP address editor for IPv4 and IPv6 types - New: TPlannerRangeSelector: input control to select a range of dates - New: TAdvSignatureCapture: component to capture signatures on touch or pen screens - New: TAdvGraphicCheckLabel / TDBAdvGraphicCheckLabel: checkbox with customizable check glyph and many built-in presets for follow, favorite, like, available, ... - New: TWebPictureContainer: PictureContainer component with picture items with URL property that performs threaded background download of pictures - New: HoverButtons capability in TAdvStringGrid - New: Excel cell value formatting capability in TAdvStringGrid - New: OnClipboardCutDone, OnClipboardCopyDone event added in TAdvStringGrid - New: Method

Folks, i am learning that Action ShareSheetAction allow to share a specific text via few mobile apps/services, like bluetooth, email, gmail.

Folks, i am learning that Action ShareSheetAction allow to share a specific text via few mobile apps/services, like bluetooth, email, gmail. But, as my testing smartphone has a lot of text communication apps like whatsapp, facebook, hangouts, i would like to know how to make the share sheet action to make these others app/services appear?

Sorting algorithm visualizations

Image
Sorting algorithm visualizations Originally shared by ThisIsWhyICode SORTING - A visualization of the most famous sorting algorithms http://sorting.at/

Pinned posts are annoying on phone and tablet.

Pinned posts are annoying on phone and tablet. Should I unpin the Post Topic Group post? Aye or naye or forever hold your peace.

I posted my first impressions of Delphi XE 5 in the appropriate group.

I posted my first impressions of Delphi XE 5 in the appropriate group. Please feel free to comment. A Originally shared by Andrea Raimondi My first impressions of XE 5. Context: To try it, I created a Virtual Machine and installed Windows 8.1 Enterprise Edition trial. Then I put on Java and the Android SDK. Last I installed Delphi XE 5 with the option to install its Android support, because I wasn't sure of what I had and what I needed. Thus, the first obvious option here is: please autodetect and install only what is needed and currently absent. I know it's a lot of work, but it's really worth it. Now, given that my setup was a bit awkard, I will concede that maybe this wasn't a very well tested configuration - I understand that and concede that it's possibly unusual. HOWEVER: Everything went really well until I tried to run a simple application. Please note that by "simple" I mean an auto-generated project with just a Text property on the header panel ch

Delphi IDE XE2 Crash: C0000026 (dbkdebugide160.bpl)

Image
Delphi IDE XE2 Crash: C0000026 (dbkdebugide160.bpl) Anyone know what causes this crash? Here is madExcept catching it and I've extracted the line from the disassembly.

I just want to confirm something that my tests seem to have flushed out. In XE5 FireMonkey on a Windows PC, the media player will not play a 3gp audio file, is this correct? If I run the file directly through the Windows Media Player, it plays just fine, but it does not load in the FireMonkey media player (or the standard VCL Media player for the matter). I get no error in FireMonkey but I do get an exception in a VCL app trying to play the same file.

I just want to confirm something that my tests seem to have flushed out. In XE5 FireMonkey on a Windows PC, the media player will not play a 3gp audio file, is this correct? If I run the file directly through the Windows Media Player, it plays just fine, but it does not load in the FireMonkey media player (or the standard VCL Media player for the matter). I get no error in FireMonkey but I do get an exception in a VCL app trying to play the same file. I have not tried it yet, but will I get the same issue when I try and compile this app for OSX? Thanks, Jim
In XE5 using Teecharts Standard, does anyone have problems with setting the LeftAxis max to 1,000,000 while having 8 series (combination of line and arrow) .   We get an access violation on editing the chart (then we have to view as text and change the left axis max).    at run time we get an access violation

Might be interesting :-)

Might be interesting :-) Originally shared by fiddler mikey We are not a start-up but we are doing a demo of a new product at SXSW in less than 2 weeks. All you developers targeting multiple platforms, check this out. I'm very excited to be part of this dev team at Embarcadero. http://techcrunch.com/2014/03/06/embarcadero-launches-appmethod-a-new-multi-device-development-platform-for-native-apps/ http://tcrn.ch/1fK8BAQ
Is there a good set of (preferably open source) components which supports Firebird, including system operations, like backup and restore?

Code of the Day:

Code of the Day:         try           if trim(Value) <> '' then             Value2 := inttostr(strtoint(Value))           else             Value2 := trim(Value);         except           ShowMessageAPP('"' + Value + '" is not a number');         end;

Anybody got any details about http://www.appmethod.com/. The webpage has very little information, but it looks like a stripped down version of Delphi for mobile apps.

Anybody got any details about  http://www.appmethod.com/ . The webpage has very little information, but it looks like a stripped down version of Delphi for mobile apps. http://www.appmethod.com

Nick Hodges should slap someone with his book and let him read the chapter about exception handling 10 times. ;)

Nick Hodges should slap someone with his book and let him read the chapter about exception handling 10 times. ;) http://docwiki.embarcadero.com/CodeExamples/XE5/en/DirectoryOperations_(Delphi)

1 ios form and 2 Listviews with different styles. How to do it?

1 ios form and 2 Listviews with different styles. How to do it? There is only one style definition when i open stylebook. I can duplicate it in notepad(?) but how can I set new style for 2nd listview? (Without modification of FMX.Listview...)

2700 members

2700 members

Just testing out the Events for the community. I think I accidentally spammed everyone with an invite. Sorry about that. The preferred way would have been to only share it like this.

Just testing out the Events for the community. I think I accidentally spammed everyone with an invite.  Sorry about that.  The preferred way would have been to only share it like this. Originally shared by Lars Fosdal Online webinar about modernizing Windows applications written with the VCL. See Marco's blogpost for details. Note: To participate, you must sign up through the Embarcadero link. It is not enough to say that you are "Going" on the G+ event post.  events/ctdaibbk20mskk55pqomienruqs

Blog post "My Webinar about Modernizing Windows Applications (or Move Away from Windows XP)" at http://blog.marcocantu.com/blog/2014_march_webinar_modernizing_windows_applications.html

Blog post "My Webinar about Modernizing Windows Applications (or Move Away from Windows XP)" at http://blog.marcocantu.com/blog/2014_march_webinar_modernizing_windows_applications.html

Today we have released an update for TMS Diagram Studio at http://www.tmssoftware.com. With TMS Diagram Studio you can add diagram and flowchart capabilities to your application.

Image
Today we have released an update for TMS Diagram Studio at http://www.tmssoftware.com . With TMS Diagram Studio you can add diagram and flowchart capabilities to your application. What's new & improved in v4.6.0.0: - New: TDiagramNavigator control provides an overview and easy navigation of the whole diagram - New: TDiagramEditor.ShowNavigator and NavigatorVisible properties allows full control of navigator visibility in the built-in diagram editor dialog - New: TForceLayout.ApplyNodesOnError allows the layout to be applied to diagram even if errors occur while calculating the new layout - Smaller fixes & improvements Fully functional trial versions are available at http://www.tmssoftware.com/site/diagram.asp

Need to share some data with another company's app and need it to be encrypted.

Need to share some data with another company's app and need it to be encrypted. They are looking to us to define the encryption algorithm and the shared key. Anyone have recommendations on the encryption algorithm to use, and how to use it in Delphi? For this we are using D2010. Thanks!

Need to share some data with another company's app and need it to be encrypted. They are looking to us to define the encryption algorithm and the shared key.

Need to share some data with another company's app and need it to be encrypted. They are looking to us to define the encryption algorithm and the shared key. Anyone have recommendations on the encryption algorithm to use, and how to use it in Delphi? For this we are using D2010. Thanks!
in XE5 does anyone notice that the conditional define statements {$IFDef  xxxx}   etc, gets clobbered by the IDE,   if they're in the begin...end of the DPR?   Did something change?

Hi Everyone

Image
Hi Everyone, When I Build App for Android use XE5, Load from Database SQLite used FIREDAC into Listview (As pic bellow). My Data encoding UTF-8 ,but font error.(Round Red). Idont know , font size , or etc...   Plz tell me WHY !!! and give me solutions. Thanks All,

I didn't notice any mention of this on Delphi Developers - maybe it's old news and I missed it...

I didn't notice any mention of this on Delphi Developers - maybe it's old news and I missed it... Originally shared by C++Builder What's coming for C++Builder developers in 2014 and beyond? New C++Builder and RAD Studio Roadmap. http://embt.co/2014Roadmap http://embt.co/2014Roadmap

Finally a new roadmap! Please discuss

Finally a new roadmap! Please discuss http://edn.embarcadero.com/article/43677

Title

An overview of our post topic groups If you could pick the right topic, that would be great! Discussion Stay on topic Code Rants Weird code in the wild Off topic Comic relief or programming related Job Opportunity Got work, need manpower Help! Need input! For those puzzling questions Third Party Posts to our sibling Components group preferred https://plus.google.com/u/0/communities/112415006900724346099 Tips & Tricks Good solutions for common challenges Delphi Feature Request Fish for a new feature! Official Delphi Updates Releases, Updates, Hotfixes Group Announcement Messages from owner and moderators Introduce yourself Write a little about yourself I made this! Delphi Show Case Example Blog Post For Delphi Blog Posts you wrote or shared Interesting Link Something readworthy about programming Bugs & Issues Found a bug? Made a QC? Tablet / Mobile Posts to our sibling iOS and Android group preferred https://plus.google.com/communities/107332833200594894879 CodeRage CodeRage eve

Nice, made a proof of concept for generating native Zebra label printer commands (ZPL) from FastReport (this is much faster and sharper than Windows printing)

Nice, made a proof of concept for generating native Zebra label printer commands (ZPL) from FastReport (this is much faster and sharper than Windows printing) http://en.wikipedia.org/wiki/Zebra_(programming_language) http://www.zebra.com/id/zebra/na/en/documentlibrary/manuals/en/zpl_ii_programming2.File.tmp/45541L-002_RA.pdf     for i := 0 to page.Objects.Count - 1 do     begin       c := TObject(page.Objects[i]) as TfrxComponent;       if c is TfrxMemoView then       begin         fm := (c as TfrxMemoView);         x := Round(fm.Left);  //is in pixels         y := Round(fm.Top);         raw.DrawLabel(x, y, Trim(fm.Text), Abs(fm.Font.Height), fm.Font.Size);       end ... procedure TRAWLabel.DrawLabel(x,y: Integer; const Text: string; aHeight: Integer = 20; aWidth: Integer = 20);  begin  FData.Add( Format('^FO%d,%d^ADN,%d,%d^FD%s^FS',                    [x, y, aHeight, aWidth, Text]) );  end; Note: ZPL positioning works with pixels, FastReport components also have pixel based po

"If (YouLoveVCL = true) then TReadThisNow.Create();"

"If (YouLoveVCL = true) then TReadThisNow.Create();" That was the subject on an EMBT marketing email I just received. 1. You should never compare a boolean with True 2. You should not do work in the constructor 3. This leaks memory (even on NextGen I think?) Are you spotting any more bad coding practices? :)

Originally shared by marc hoffman

Originally shared by marc hoffman http://blogs.remobjects.com/blogs/mh/2014/03/02/p6690

Hi Friends

Hi Friends, I have created one progress window in delphi xe2. I have put one progress bar and above it one label. I have 18 commands to complete and i updating progressbar  value and label text to show progress to user. progressbar work correctly but label not updating its text infect it shows first text only which have assigned initially. could anyone  help me on this?  and application show window in center of desktop on some machines of winow8 and on some it's not.

Hello people, this must simple for most.

Hello people, this must simple for most. How do I handle in a simple form a TXMLData? I have access to consume a webserver, so I have a method that returns a table. I need to read data attributes but I am missing something, I've done like: with (HTTPRIO1 as ServiceSoap) do  begin      xdata := TXMLData.Create;        xdata := readTheTable(params);    .     .    .     xdata.Free;  end;     I can just get the xsd structure info, not the data itself.

Hello people, this must simple for most. How do I handle in a simple form a TXMLData? I have access to consume a webserver, so I have a method that returns a table. I need to read data attributes but I am missing something, I've done like:

Hello people, this must simple for most. How do I handle in a simple form a TXMLData? I have access to consume a webserver, so I have a method that returns a table. I need to read data attributes but I am missing something, I've done like: with (HTTPRIO1 as ServiceSoap) do  begin      xdata := TXMLData.Create;        xdata := readTheTable(params);    .     .    .     xdata.Free;  end;     I can just get the xsd structure info, not the data itself.