Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all 1963 articles
Browse latest View live

Delphi 10 não aceita colchete de fechamento "]"

$
0
0

Delphi 10 Seattle is beautiful but has a bug that bothers a lot.Every time I type [] out [[. Can anyone help?When will fix for the closing bracket?


TSplitView+TCategoryButtons question

$
0
0

I've implemented a sliding drawer menu like the one demonstrated in the SplitView example that ships with C++ Builder 10. I have it working but I have a question about an expected behavior and whether it is possible to get the behavior.

I have assigned actions to the TButtonItems in the TCategoryButtons that is in the TSplitView control. The TButtonItems have Captions like &Menuitem. I expected that Alt+M would fire the action assigned to the buttonitem via the shortcut keypress, but it doesn't work. In fact, there is no way to give the categorybuttons focus so that F1 can fire a help topic or Enter can fire an action. The (single) TButtonCategory of the TCategoryButtons component is hidden in my app as it is in the example app so it can't be clicked to give focus to the TCategoryButtons control.

I tried giving focus to the TCategoryButtons control in code, but it doesn't give the control focus. Has anyone found a way to give the TCategoryButtons control focus in a drawer menu?

Thanks in advance.

FireDac Reflection API with server's generated id

$
0
0

How to use FireDac reflection API with generated id from server side? In my application, I'm using a simple TFDQuery to fetch data, and so the server passes this data to client by FireDac Reflection API, but when client send me inserted data, I need to generate id for them and so result the new generated id to client. How to do that?

Delphi 10 does not accept closing bracket "]"

$
0
0

Delphi 10 Seattle is beautiful but has a bug that bothers a lot.Every time I type [] out [[. Can anyone help?When will fix for the closing bracket?

Grayed out LiveBindings conversion options

$
0
0

Hi,
I have a Blob field in my DB containing text that I want to link to a TMemo.
Problem resided in converting the BLOB into the Memo.Lines.
I used to have no problems with this using LiveBindings to link DB.BlobField -> TMemo.Lines

Double-clicking the BindList component brings the links to control editor
Then I take my LinkControlToField binding my Blob field to the Memo control.
Double-clicking the LinkControlToField brings the Expression editor.
Problem is that I can't edit any of the fields, they're all grayed out and I can't edit the Control and Source expressions.
I did this several times, but an't anymore.
Is this a XE10Seattle problem? I did it with the same memo and DB... so I now it should work.

Am I missing something?
Thanks for any help.

Firedac TFDQuery and Conditional Substitution

$
0
0

Hello,

  I have dropped a FDConnection ,FDPhysMySQLDriverLink and FDQuery on a form. I configure FDConnection on a MYSQL database.

At design time I tried this conditional SQL :'SELECT {IF MYSQL}  LAST_INSERT_ID() {fi} {IF SQLITE}last_insert_rowid(){fi} AS ID ' using SQL property editor, and it works.

I tried to create the FDQUERY at Runtime :

 d:=TFDQuery.Create(self);
d.connecton:= FDConnection1;
 d.SQL.Text:=  'SELECT {IF MYSQL}  LAST_INSERT_ID() {fi} {IF SQLITE}last_insert_rowid(){fi} AS ID ';
 d.Open;
but I got the error "You have a syntax error near .."

Going throught object inspector I have  seen the SQL statement  has been executed "'SELECT   LAST_INSERT_ID()  last_insert_rowid() AS ID '.

The Conditional substitution has been not applyed. Where did I go wrong?

thanks for any advice

 

 

GIF PLAYER

$
0
0

Hello Embarcadero Community!!! I am a developer and I write for microcontrollers in C. I decided to learn programming in C ++ and installed RAD STUDIO 10. She is very good. I love her very much and it makes me nostalgic (I studied at the Polytechnic Institute, and we were taught at Delphi included). Perhaps my question may seem trivial but lose GIF image in C ++ Builder. And specify the playback speed and frame. No old examples are not working. Because the books on C ++ Builder little and mostly about the old version, please tell me if anyone knows? 

Not all packets recieved in Castalia ?

$
0
0

i broadcast a packet from one node to another

and not all packets received

sent 20 packets and received 16 ,, why ?

using TunableMAC protocol


linker error

$
0
0

Hello, i have issue with my app which was working on BCB6, during linking i have error:

[ilink32 Error] Error: Unresolved external '__InitExceptBlockLDTC' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cgauges
[ilink32 Error] Error: Unresolved external '_ThrowExceptionLDTC(void *, void *, void *, void *, unsigned int, unsigned int, unsigned int, unsigned char *, void *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cgauges
[ilink32 Error] Error: Unresolved external '_ReThrowException(unsigned int, unsigned char *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cdiroutl
[ilink32 Error] Error: Unresolved external '_CatchCleanup()' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cdiroutl
[ilink32 Error] Error: Unresolved external '__Return_unwind' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cspin

Accessing the Primary EMail ID in Android mobile using Firemonkey/Delphi

page error in taskmanager ar increase up by moving Image

$
0
0

 

Hi,

 

ha have write a program for Windows 32  under Delphi 10 Seattle.

 

On the Main Window (TForm) is a full screen image (TImage) and on it a small image (TImage).

 

Now I move the small image on the big image every 1 second with a ttimer.

 

By moving the small image, the page error in taskmanager ar increae up.  Why?

 

on start:

 Image6.Picture.LoadFromFilePfad+'\BigBild.bmp');
 Image5.Picture.LoadFromFilePfad+'\Bild.bmp');

In Timer:

        Image5.Top :=  Image5.Top-8;
        Image5.Left := Image5.Left-25;
        if Image5.Left<((Image6.Left-20)+(Image6.Width div 2)) then begin
          Image5.Top := (Label3.Top-50)+Label3.Height+(Image6.Height div 2)+40-(Image5.Height div 2);
          Image5.Left := Image6.Left+Image6.Width+15;
        end;

 

Error when compiling Android project

$
0
0

I get the following error when compiling a Multi Device FMX project for Android.

[DCC Fatal Error] FMX.Helpers.Android.pas(372): F2051 Unit FMX.Maps.Android was compiled with a different version of FMX.Helpers.Android.TUIThreadCaller

When compiling for Windows it works fine. If I use RAD Studio XE7 it works fine for Android. I understand it can be hard to figure out what is wrong when you don't have the source code but maybe someone has an idea?

Regards, Anderz

DecimalSeparator does not affect to UnicodeString.FormatFloat

$
0
0

Hello

Does anyone know how to make TFormatSettings.DecimalSeparator work so, that it will affect to UnicodeString.FormatFloat? I would like to have decimalaseparator to be such that end user can select either '.' or ',' depending on his or her wish. My code, as an simplified example:

Float f=1234.4324;
TFormatSettings ForSet;
ForSet.Create();
ForSet.DecimalSeparator = '.';
Edit1->Text=EvaStr.FormatFloat("00.00E+00",f);

Above code does not work. But if I use everywhere ',' instead of '.'. Everything works just fine.

 

 

White lines in bitmap image printed from Delphi on epson thermal printer

$
0
0

When I print bitmap image on epson TM- T20 printer, it shows some white horizontal spaces in image I tried to print image using OPOS as well as ESCPOS commands, but both shows same problem I tried by changing printer model to T-82 but did not helped So please help me to fix this problem Or Is there any component available to communicate with Epson thermal printer in delphi?

Android application orientation problem

$
0
0

When I compile an Android App with RAD 10 Seattle it crashes when I rotate the Android Device. If I compile it with XE7 it doesn't crash. Is there something I'm missing? I have set it to support all orientations in the options.


iOS: Missing provisioning profile

$
0
0

Hi,
I don't know if this is related to the recent changes from Appler Developper program but I can't deploy my apps to my iOS devices anymore.
I checked everything, the entitlement files, the certificates that are ok, I requested new copies of the provisioning profiles and certificates, everything is fine.
Now when I try to deploy an app to my iPhone6 or iPad3, I always get the following error:
[Error Error] Missing provisioning information. Distribution certificate has not been specified for the "Debug" platform configuration.

All parameters are ok, the SDK updated (no errors), the Provisioning set to "auto" (I even tried Sarina's entitlement manual changes, no luck)...

Any idea what could be wrong? Doesn't work with 32 or 64 bits... my iPhone is running iOS 8.3, same for the iPad. Works fine on OS/X and iOS Simulator.

XCode: 6.3.2

Thanks for any help.

Steve

Getit Components would not install

$
0
0

Good Day

Delphi XE8 on Windows 10 - Clean Install

 

The GetIt Components downbload but gives error when installing.

 

Anyone that can assist

 

Marinus

iniciativa

$
0
0

Hi! Appendix there is a picture of a listview I would make. I would like to do the same or similar to the Rad? thank you..        

XE10Seattle: Castalia really integrated?

$
0
0

Hi,
Since I upgraded from XE8 to XE10 Pro, I seem to have lost some of the functionalities that were present in XE8 with Castalia... 
Have all the features been integrated in the IDE?

- Where are the smart highlighting (little arrows showing the flow like abort, break, halt) ?
- Renaming procedure propagation with shift-ctrl-alt-P ?
- Declare var on-the-go in the code: var myVar:integer; "enter key" (used to add the var declaration) ?
- Code Analysis to know the quality of the code, toxicity, complexity ?

Thanks for any clarifications

Steve

User type constants not correctly allocated when compiled in "Release"

$
0
0

C++ Builder XE8 subscription update 1 Professional - running on Win 7 (32 bit) PC.

I have a fairly large VCL project (on going). Latest version compiles, links without errors or warnings when compiling in "debug" mode and runs as expected. When I change to "release" mode the code still compiles and links without any errors or warnings but it does not run correctly: some const arrays of user types seem to be allocated memory but they are not correctly initialised. The software runs as if all the integers in the user types are initialised as zero and all the Strings (aka VCL Unicode strings) are initialised as empty strings. Individual const types of the user type ARE initialised correctly, it is only the const arrays of the individual const types that are not.

The problem is consistent - ie if I change settings back to "debug" and recompile then the application works as expected. If I change back to "release" it fails again.

I am not quite sure how to debug this further (any constructive ideas welcome!).

Has anyone else seen this?

Viewing all 1963 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>