-
Content Count
1977 -
Joined
-
Last visited
-
Days Won
26
Everything posted by Attila Kovacs
-
How to get ThisFormClass (TForm1) from Form1
Attila Kovacs replied to Qasim Shahzad's topic in Algorithms, Data Structures and Class Design
well, in this case you could derive TMyForm from TForm which has a .Show[Modal]: returntype; method and do many more things for every form in one place, and no need for a global "utils.pas". Just edit the class declaration at the top of the file from class(TForm) to class(TMyForm) (after you implemented TMyForm of course)- 20 replies
-
- form creation
- refactoring
-
(and 3 more)
Tagged with:
-
How to get ThisFormClass (TForm1) from Form1
Attila Kovacs replied to Qasim Shahzad's topic in Algorithms, Data Structures and Class Design
For VCL: TWhateverForm.Create(whoever).Show[Modal]; and in OnClose event Action := caFree; and remove every form reference like "Form1: TForm1" except the main form's which is needed. If you need to pass arguments or need results then you can add a method to the Form class like public function ShowForm(myarguments): resulttype etc.. FMX, I don't know, I'd be surprised if it would be much different.- 20 replies
-
- form creation
- refactoring
-
(and 3 more)
Tagged with:
-
for curiosity's sake, is there any compiler hint on that concat?
-
EReadError "Property does not exist"
Attila Kovacs replied to John Kouraklis's topic in Delphi IDE and APIs
Just got the similar case, I was removing published properties from existing visual components and did not open every dfm in the IDE so there were dfm's having old non-existent properties complaining at runtime. Can't remember the error message though. -
EReadError "Property does not exist"
Attila Kovacs replied to John Kouraklis's topic in Delphi IDE and APIs
I'd say it's the TReader and the property does not exists in the class not in the dfm. Seems like you have different versions in the path or the component's package is used in other packages which are not rebuilt? Try to create a batch file which rebuilds everything from scratch, it could be helpful to debug such things. -
Move current entity to another unit?
Attila Kovacs replied to PeterPanettone's topic in MMX Code Explorer
buhh, I'm so tired, Uwe, can't you make MMX coding for me while I'm sleeping? pleeease! -
Developing under Windows 11 in a VM not feasible ?
Attila Kovacs replied to A.M. Hoornweg's topic in General Help
If not, you should not use that product.- 26 replies
-
- virtualization
- vmware
-
(and 1 more)
Tagged with:
-
Developing under Windows 11 in a VM not feasible ?
Attila Kovacs replied to A.M. Hoornweg's topic in General Help
You know that for this reason a recovery key/image/etc... should be generated?- 26 replies
-
- virtualization
- vmware
-
(and 1 more)
Tagged with:
-
Developing under Windows 11 in a VM not feasible ?
Attila Kovacs replied to A.M. Hoornweg's topic in General Help
With your logic not only the VM but an encrypted HDD would not be recoverable anymore.- 26 replies
-
- virtualization
- vmware
-
(and 1 more)
Tagged with:
-
Interesting way to copy dynamic arrays.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
I'm not sure that is well known or frequently needed, I think I saw it first here (maybe, dunno): https://stackoverflow.com/questions/19466038/finding-common-elements-in-two-arrays/19524788#19524788 -
Yeah, I bought the version 3 back in the days, it's pretty cool and worth every dime, you can generate everything you want and take also an SVG as a source. Won't edit your project files though. If you wanted to do so. Maybe LaunchGen handles SVG's too.
-
How to Prevent Multiple Instance Application Running.
Attila Kovacs replied to amit's topic in Cross-platform
I'd be interested if it fires up fast enough for double clicking on a taskbar shortcut on a slow VM. -
Can I change the entry point for a VCL application?
Attila Kovacs replied to JamieR's topic in Algorithms, Data Structures and Class Design
It's part of the know-how. 😉 -
Can I change the entry point for a VCL application?
Attila Kovacs replied to JamieR's topic in Algorithms, Data Structures and Class Design
ctrl-v on the project name (xy.exe or .dll etc..) in the project manager at the upper right corner of the IDE. Just saying. Looks like it will open something new for you. -
Delphi on Windows 11 on MacBook Pro 16 (2021)
Attila Kovacs replied to Lars Fosdal's topic in Cross-platform
I did something similar the other day, installed Win11 into a HyperV container + Delphi 11 Trial with Android SDK, connected my phone via WLAN debug to the system, added a button to the form, F9 and voila, app is running on the phone. Brilliant. It's just slow AF as I'm on my old notebook 😉 -
Delphi on Windows 11 on MacBook Pro 16 (2021)
Attila Kovacs replied to Lars Fosdal's topic in Cross-platform
Apparently not anymore. I'm glad to see the industry coming together. -
Delphi on Windows 11 on MacBook Pro 16 (2021)
Attila Kovacs replied to Lars Fosdal's topic in Cross-platform
Is that a Windows 11 ARM running in a VM on a 3000 EUR MAC emulating x86 to run RAD Studio? 🙈 That will be nice! 😉 -
And are you sure your android device is knowing that netbios name? What about using an IP instead?
-
I don't know, first of all, what is this? "http:/masterdata/Artikel.asmx" this is not an URL. Is it an example with typo? I'd try to change http to https, hopefully your endpoint supports https. (which will raise further questions/problems but that will be the next step)
-
should be https
-
Why don't you just connect to myip.opendns.com from the outside?
-
-
maybe "adresse'] as TJSONArray);" the return type of Values[] is very general, you have to process it with checking against the type and cast them if apply.
-
for example: (jsonObj.Values['forretningsadresse'] as TJSONObject).Values['adresse']