jesu
Members-
Content Count
26 -
Joined
-
Last visited
Everything posted by jesu
-
Hello. I'm trying to create a function that can return a float or nil: function myfunc(const pa_value:string): double; begin if pa_value = whatever then result := -1 else result := nil; end; to replace many lines like this (simplified code): if check then parambyname('myparam').asfloat := -1 else parambyname('myparam').clear; What is the right way to do that? Thanks.
-
This happens in the first execution of bds after installation, so that problem shouldn't exist if Getit had uninstalled them rightly. I uninstalled Navigator by hand because I had read that was the only one that gave trouble. It seems I was wrong.
-
After installing new version I get lots of errors like this: That file has date 23/9/2024. Is that the new version or the old one that wasn't uninstalled? Should I repeat the whole process again? Thanks.
-
function: how to return nil
jesu replied to jesu's topic in Algorithms, Data Structures and Class Design
Right, I've removed var and it works, but the combobox style is csDropDown so I check both itemindex and text. And there are lots of them, so if I have a problem I use the name to find which one is wrong. -
function: how to return nil
jesu replied to jesu's topic in Algorithms, Data Structures and Class Design
ok, I'm not modifying tparam, but tparam.value -
function: how to return nil
jesu replied to jesu's topic in Algorithms, Data Structures and Class Design
Because I'm modifying it inside the procedure -
function: how to return nil
jesu replied to jesu's topic in Algorithms, Data Structures and Class Design
Thanks for the suggestions. Returning a dummy value would mean rewriting the stored procedures so that's a no-no. I'm trying to avoid Variants because in the past I've had problems with variants <-> float. I've tried this instead procedure ProcValorDeCombo(var pn_param: TFDParam; pt_Combo: TComboBox); var vn_marca: double; begin case pt_Combo.ItemIndex of -1: begin // code ... pn_param.AsFloat := vn_marca; end; // code... else pn_param.Clear; end; end; but when I try to call it ProcValorDeCombo(ParamByName('myparam'), mycombo); I get E2197 Constant object cannot be passed as var parameter -
I didn't use anything new. If they break compatibility, what's the purpose of calling it 12.2 instead of 13.0?
-
When I compile a program with 12.2 and deploy to a computer that has 12.1 bpls I get this error: No se encuentra el punto de entrada del procedimiento @System@Threading@TParallelArray@$bcctr$qqrv en la biblioteca de vínculos dinámicos myprogram.exe. Have they changed the interface? Thanks
-
Hello This code: if MessageDlg('Welcome to my Delphi application. Exit now?', mtConfirmation, [mbYes, mbNo], 0, mbYes) = mrYes then begin MessageDlg('Exiting the Delphi application.', mtInformation, [mbOk], 0, mbOk); Close; end; shows icons in previous versions, but not in Delphi 12. This is too obvious to be a bug. Am I missing something? Thanks.
-
Hello. I have 2 folders called CatalogRepository. One is C:\Users\usuario\Documents\Embarcadero\Studio\23.0\CatalogRepository and another one in D:\Delphi12\CatalogRepository. I think this last one is the folder I chose during installation. Each of them occupies several gigabytes. The one in C contains Fastreports, Jedi, Styles.. and the one in D has Android NDK, Konopka, FmxLinux,... Are both neccessary? Can I delete any of them to save some space? Thanks.
-
If I copy an exe that uses skia to another computer I get Runtime error 217 at 00EA254C Options: -Allow to include skia in the exe (like midaslib) -Show the right error message and an option to download sk4d.dll -???? And another problem is that that dll doesn't have a version. If they solve a bug in a new version, how can we know if the user has the right version? Does this make sense? Has anyone asked Embarcadero to improve it? Thanks.
-
My experience is that if you compile without doing any changes it always works, but compiling + doing changes + recompiling sometimes fails. It seems obvious that they are saving something from previous compilations and they are doing it wrong. There should be an option to do always a clean compilation. That would be much faster than having to close the IDE and reopen.
-
For me, the update has been messy. I have Raize components in the palette, but GetIt says they aren't installed. And if I try to install it throws an exception saying that old files are in use and can't be deleted. And help doesn't work. It tries to go to urls that don't exist like https://docwiki.embarcadero.com/CodeExamples/Updates/en/MessageDlgConfirmation_(Delphi)
-
Hello. I'm testing Delphi 12 + patch 1 and getting some internal errors like F2084 Internal Error: AV6AA94AE0(6AA70000)-R00000018-0. F2084 Internal Error: D33789 Closing Delphi and deleting dcus so far has solved it, but it doesn't improve chances that we upgrade. Is this a known problem? Thanks.
-
No, disabling package cache hasn't helped at all
-
That worked. Thanks.
-
Any way to restore the previous behaviour? That's what users have seen for many years and what they expect
-
No, so far they are not reproducible. They've happened just once in several projects, so I don't know if it's something in common to those projects I have Ddevextensions installed, so I've disabled cache there to see if that helps
-
And I've also had a couple of stack overflows just moving some components and recompiling
-
Hello. I have a program with a clean TFDMemTable connected to a DbGrid just to test different files type Mem: TFDMemTable; ... procedure tDConversor.ProcAbrirMem(const pa_fichero: string); begin with Mem do begin if Active then Close; LoadFromFile(pa_fichero); end; end; This worked fine in previous versions, but in 11.3 when I load several files with different structure I get errors. It seems that now LoadFromFile is not cleaning previous field definitions. Can anyone confirm it? I'm also seeing similar errors with this code: Mem.CopyDataSet(CDS, [coStructure, coRestart, coAppend]); Thanks.
-
I use sfBinary. Even so, it doesn't happen with every file. It doesn't make sense, but it seems related to the data contained or maybe to the number of records, I'm not sure.
-
After doing some more tests I've also got the same error in 11.2, so this might be not completely new. It's easier to reproduce if any of the files contains BLOB fields.
-
It was very helpful 20 years ago when many users had slow connections. In some cases we've deployed more than 50 versions of an exe based in the same Delphi version and the same bpls. Nowadays most users have fast connections, but we still have some users that have a slow connection or occassionally connect to a slow wifi
-
We have many applications. If we leave any of them in current version with 11.1 and deploy the new bpls it fails. And if we update any exe and leave the old bpl we also get same error. IMO, they should have renamed it to frx281.bpl. We still have to decide if upgrading is worthy enough and this doesn't help.