-
Content Count
210 -
Joined
-
Last visited
-
Days Won
5
Posts posted by haentschman
-
-
Form Creation
in VCL
Hi...
How about source code? Complete project?
What is the mainform? Don´t free the mainform!
-
Hi...welcome here.
QuoteI am new to learn Delphi technology.
...great!
QuoteI am using Delphi 7 application.
Why? Better using the Delphi Community edition...the modern way.
https://www.embarcadero.com/products/delphi/starter/free-download/
QuoteIf anyone can help, please let me know.
https://learndelphi.org/de/everything-you-need-to-know-about-debugging-in-delphi/
-
Yes...Version 2023.1 😉
-
Hi...😎
Quotebetter the paid for version
At first...Events. 😉
-
Hi...😎
Quoterun the Source Analyzer example
...I will give it a try. 😉
Quotesynthesized
that's what i mean with "dummy name" 😉
Thanks...
-
Hi
I don't use the studio yet. I was only interested in the principle of whether this is possible at all.
I have an Outlook mail with which the images are embedded via copy/pase. These have NO file name. I would like to save only the marked picture, which is no file, by drop into a folder. To do this, the "metadata" of the image would have to be converted to PNG or JPG...and get a filename. The normal way is...save the image over context menu. I want it over Drag without temporary file.Outlook -> MyApplication
Thanks...
-
-
Hi...
I need a "Like" in the filter list. With %Value% it works. But users don't understand that. I want to have: on entering "Bla" result from the dataset 'MyBla', 'BlaBlubb'.
At DevExpress there is this entry:
https://supportcenter.devexpress.com...-or-like-value
created 15 years ago...with further links. All are imho not purposeful. ...Endless loop from link to link.I have felt through all filter settings.
Does anyone have any ideas.
Thank you.
Version: 21.2.9
CrossPost: germanDP https://www.delphipraxis.net/212875-devexpress-filterrow-ohne-wildcard.html#post1521131
-
welcome here...
Here is the right place for programming with C++ or Delphi. Please make sure that you are always in the right subforum...
-
-
...here we are now! Not personal ...for the current and the next generation.
- 1
-
Quotecausing a multitude of changes and in essence a merging nightmare.
...correctly.
-
Hi...
QuoteBut in this company..... every programmer does whatever it wants (function that have 2000 lines of code, as strings are named s, k or i, etc)
Sorry, but it is not the right company. That's where the developers get in their own way. Uniform styles are important to understand all "developers" and their code. The management must set the standard!
Try to talk to the others about a simple standard (prefixes for components, meaningful variable names, begin/end styles - separate lines or not, CTRL+D for all...).
What is the total number of lines of source code? Do you have a trainee for the implementation of the styleguide in the old code?
no matter what you do...
QuoteBut nothing will save you from a sloppy project manager! If the boss doesn't care, who needs that boss!
...that is the problem!
another one... PDF 😉 ...great work!
- 1
- 1
-
DeepL knows " Resume"
-
QuoteIf you pass you feel good and you have something to put on your CV
...for german users... what means "CV".
Abbreviations are not always good...
-
Quotean improved LSP server
...and much faster! 🥱 (code completion, find window etc.)
-
The Developer certificate is only valid for a limited time... Mine has already expired. Although I have been working in software development for years.
Is it still like this? With the Master too?
- 1
-
Hi...
QuoteI don't think I could pass the exam
...really?
There are two types of exam:
Delphi Certified Developer: via online / browser ... i have (exam time: ~1 hour)
Delphi Master Certified Developer: ... Uwe has (exam: i dont know time and where)
https://www.embarcadero.com/resources/embarcadero-certification-center
...what you want?
- 2
-
Hi...
It is not a good idea to keep data storage in a visual control.
The JSON should be generated from the data source (class, csv etc.). -
SQL:
Qry := TFDQuery.Create(Self); Qry.Connection := Self.AC; Qry.SQL.Text := 'select * from Documents where OriginalFileName like :PAR'; Qry.ParamByName('PAR').AsString := '%1001\%'; // with "\" Qry.Open;
Qry := TFDQuery.Create(Self); Qry.Connection := Self.AC; Qry.SQL.Text := 'select * from Documents where OriginalFileName like :PAR'; Qry.ParamByName('PAR').AsString := '%1001%'; // without "\" Qry.Open;
...it works...i not like guessing.
- 2
-
QuoteI do not see how it applies to my case
It is a basic problem with only text in the sql statement!
QuotePLZ stop guessing
SQL.Text: select A.ID,A.DistributorID,A.DocumentTypeString,A.DocumentCaption,A.OriginalFileName,A.SendTypeFolder, A.SendTypeUSB, A.SendTypeMail, A.ReceiptDate,A.ServiceDate, A.ReceiptNumber,A.Store,A.ReceiptReceiver,A.ServicePartner, A.AddDate,A.AddName,A.ModifiedName,A.ModifiedDate, D.Name1 as StoreName,D.Name2 as StoreName_1,D.LKZ as StoreCountry,D.PLZ as StorePostCode,D.Ort as StoreLocation, D.Strasse as StoreStreet,D.Telefon as StorePhone,R.Name1 as ReceiverReceiverName from Documents A full outer join ADR D on A.Store = D.ixADR full outer join ADR R on A.ReceiptReceiver = R.ixADR where A.OriginalFileName like :REN order by ID desc ... Qry.ParamByName('REN').AsString := '%[_]' + Pair.Key + '[_]' + Pair.Value + '%';
is from me in my the original code. Works! (FireDAC, MSSQL)
-
QuoteAFAIK parameters couldn't be used inside clauses like LIKE
...no.
FDQuery1.SQL.Text := 'select * from tab where code LIKE :Code'; FDQuery1.ParamByName('code').AsString := '%123%'; FDQuery1.Open;
...the "%" is in the parameter!
Other Example:
Qry.ParamByName('REN').AsString := '%[_]' + Pair.Key + '[_]' + Pair.Value + '%';
- 2
- 1
-
by the way...
FDQuery1.SQL.add('WHERE (MainDirectory LIKE ''%' + Edit1.Text + '%'') OR INSTR(''' + Edit1.Text + ''', MainDirectory) > 0' );
you know what SQL Injection is?
https://en.wikipedia.org/wiki/SQL_injection
The german site is better... With delphi examples: https://de.wikipedia.org/wiki/SQL-Injection
🙄 Always use parameters!
- 3
- 1
-
Hi...
That's why the components are called "data sensitive". Without a direct connection to the database you have no data.... (unless there is something new )
You have to come up with a separation of data and database.
Variant 1:
1. load data with query
2. transfer the data into objects
3. throw away query
4. change data in object
5. save object with SQL (create query, throw away query)
... with this variant one gets along also without data-sensitive components. You can then display an object in the grid as well as a property in the edit.Variant 2:
Copy to another dataset:
https://docwiki.embarcadero.com/Libraries/Sydney/en/FireDAC.Comp.DataSet.TFDDataSet.CopyDataSet
Imho there are other variants....
FireDAC Connection to ADS failed
in Databases
Posted · Edited by haentschman
Hi...
I am trying to connect to our new ADS server for the first time. (Third party software, access data with read rights available). On another VM the Advantage Data Architect is running with the same access data. Share on the Database folder available.
...it does not want me.
"...cannot authenticate the user..."
What is missing?
Thanks.
PS: On my machine the Advanced Data Architect is also working...
Crosspost: german DP https://www.delphipraxis.net/213554-zugriff-auf-ads-server.html#post1525731