Emailx45

No Rank
Points: 0
be what you're doing...
// see in Help System:
// FireDAC.Phys.PGWrapper.TPgType.GetEnumValue
// and
// System.TypInfo.GetEnumValue
uses
System.TypInfo;
...
pTypeInfoX: PTypeInfo; // ^TTypeInfo
xSymbolName: TSymbolName; // String[255]
xTypeInfoFieldAccessor: TTypeInfoFieldAccessor; // record
xTypeData: TTypeData; // record
begin
columnTitle := Column.FieldName;
//unit System.TypInfo - uses = System.TypInfo;
value := GetEnumValue(pTypeInfoX, Column.FieldName); // Working on this
//
xSymbolName := pTypeInfoX.Name;
xTypeInfoFieldAccessor := pTypeInfoX.NameFld;
xTypeData := pTypeInfoX.TypeData;
//
if pTypeInfoX.Kind = TTypeKind.tkString then { or another TTypeKind }
// ...
;
Read More...
IF your need just "SORT" your table/SQL by click in "Title Grid Column":
Maybe this, is more easy! Google = "delphi grid click on column title"
Sort DBGrid by clicking column's title
stackoverflow.com/questions/1145839/sort...icking-columns-title
NOTE: 14 CAPTCHA is good for you? hehehehe
Read More...
my tip was about "one particular case".
When my post is very big, I do it! And, not problem for while!
Of course, the "CAPTCHA" is really bad in some case!
NOTE: for these post +/- 10 CAPTCHA before "submit it"
Read More...
You're RIGHT!
When setting to "READ-ONLY", same with ITEMS created in DesignTime IS NOT COUNTED in runtime!
I think that is not correct, because "THE ITEMS WAS CREATED IN DESIGNTIME"... but, if is need "re-create the control in internal functions, as showed! then, really I Dont know if is NOT bug but bad logic by Embarcadero!
hug
Read More...
my TIP:
- FIRST, post one simple line and "your title correct" - content can be "non-sense", for example!
- LATER, edit your post with your "new question" or "reply"
NOTE:
Hi robert
As your questions are usually very complex (to be understood), you'll see that the forum preprocessor thought:
"Urrrrrr, here comes Robert again!
NOTE: No offense, I'm just kidding!
Read More...
Since you did not give details about your test environment, I assume you're using a VCL project, however, I do not know what your IDE is:
So here's my test:
- Windows 10 PRO 1803 build 17134.1 (I'm out of the 1809 bugged)
- RAD Studio XE10.2.3 Arch
- VCL Project = Form1 and TListView with 4 items
It was compiled without errors and with the expected return of 4 items, not zero...
[code test = Form1 in TEXT FORMAT]
[code in Form1.Create]
[Screenshot]
Read More...
Android Permission Model
Recent versions of the Android API have changed the mechanism to request certain permissions, which now need to be requested at runtime as well as specified in the manifest file.
You can call PermissionsService.RequestPermissions (from the System.Permissions.pas unit) to request permissions from the users passing a routine that will be called with the user's responses. Optionally, the permission request routine can also take another routine to explain the need for the permission to the users, in case they have previously denied the request.
The Delphi code snippet below is extracted from Object Pascal/Mobile Snippets/Location:
... continue
docwiki.embarcadero.com/RADStudio/Rio/en...oid_Permission_Model
Read More...
Direct Link Bug in Delphi 10.3 Rio / C++Builder 10.3 ISO affects TMS installers
Friday, November 23, 2018
We had detected that on some machines here there was an erratic setting in the RSVARS.BAT file in the \bin subfolder for the installed Delphi 10.3 Rio / C++Builder 10.3. It concerns the setting for .NET FrameworkDir:
@SET FrameworkDir=C:\Windows\Microsoft.NET\Framework\v4.5
This variable is critical to set the path where to find the .NET MSBUILD tool. This setting that is in RSVARS.BAT is not correct as this directory is not used for the Microsoft .NET framework v4.5. For some reason, Microsoft decided to deploy the Microsoft .NET framework v4.5 in the folder C:\Windows\Microsoft.NET\Framework\v4.0.30319. So, the correct setting in RSVARS.BAT should be:
@SET FrameworkDir=C:\Windows\Microsoft.NET\Framework\v4.0.30319
We had similar problem reports from several customers and we have been in touch with Embarcadero. We got confirmation from Marco Cantu that this issue is only for the ISO based installs of Delphi 10.3 Rio, C++Builder 10.3 Rio and RAD Studio 10.3 Rio.
So, until a solution comes from Embarcadero, we recommend to edit: C:\Program Files (x86)\EmbarcaderoStudio\20.0\bin\RSVARS.BAT and replace the erratic FrameworkDir setting by the correct one.
After patching this, our installers will be able to invoke the MSBUILD tool to build our component package files.
The developers having installed Delphi 10.3 Rio, C++Builder 10.3 Rio and RAD Studio 10.3 Rio via the web installer are not affected.
Bruno Fierens
www.tmssoftware.com/site/blog.asp
Read More...
maybe you need read the article by Marco Cantu
blog.marcocantu.com/blog/2018-october-in...ariables-delphi.html
Read More...
Luckily, "prudence" still rules my life!
The value to some is definitely a burden in developing your knowledge and access to new technologies and products!
Either way, a VM is always welcome!
Even with a good / regular setting for some, like mine:
- Intel i7 4770K
- 8GB RAM Corsair
- nVidia GTX650 Ti Boost 2GB
- and 5TB discs
We all know that everything new is susceptible to new problems.
Take the case of nVidia RTX2018 and RTX2017 video cards, being invalidated in less than a month for enthusiastic users who pay $ 2000.00 or more for a product, and the next week they can use the computer!
And we know a little bit of Borland history until we get to Embarcadero!
So prudence is good and it's free!
good luck everyone
Read More...
I always test in a VM first!
why break my system with TRIAL apps?
Read More...
maybe! did you read the info before start downloading ...?
all the world is trying install it as you!
Read More...
Try install the essensial first... later use GetIt to install your platforms, addons etc...
try install only main files, without any other choice in menu of options!
Read More...
See the sample in Embarcadero: (Pay attention on Timer use)
docwiki.embarcadero.com/RADStudio/Tokyo/...a_Basic_Media_Player
Read More...