

Skrim
Members-
Content Count
58 -
Joined
-
Last visited
-
Days Won
1
Skrim last won the day on June 1
Skrim had the most liked content!
Community Reputation
13 GoodRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
You should not/cannot send an Ehf invoice directly to the customer, it must be directed via an approved accesspoint. So the first thing I would do is to choose this. Also, read the documentation for the ehf invoice standard carefully. Take care to get the latest version EHF 3, there is old no longer valid information out there. An Ehf invoice might be technically valid, but you need to validate the contence as well. A tiny litle "glitch" and the invoice will not be forwarded and some accesspoints will charge you for the missing/not valid contence. So there is a lot of work to be done
-
What do you mean by "Send"? 1) Producing the XML file and then send or 2) Just distribute an XML file to the Access point?
-
I have just subscribed to an AI service. I already have working code for a REST service. Tested with code fram AI and OMG it looked impressive. My question was "How can I connect to REST service xxxx using Delphi 12.2?" AI gave me three times the amount of code I already use and the AI code does not work, even after several corrections. Non programmers making programs using AI, I think not :)
-
Learning to make my own classes
Skrim posted a topic in Algorithms, Data Structures and Class Design
I have never made my own classes before and I have just started to learn. There is one field FName in the class below. What if I have 50 different Fxxxxx? Do I have to write Setter and Getter for every field? Can I declare a record inside the class? Type TEmployee = class private FName : string; //FSalary : Currency; Function GetName : string; Procedure SetName(Const Value : string); public Property Name : string read GetName write SetName; end; implementation {$R *.dfm} Function TEmployee.GetName: string; begin Result:=FName; end; Procedure TEmployee.SetName(const Value: string); begin if value='' then raise Exception.Create('Name must have a value'); FName:=value; end; -
var aNumber : Double; begin aNumber:=0; aNumber:=strtofloat(grid.Cells[3,arow]); ... ... Are floatvalues automatically initialized as 0 (zero)? Is the first code line unnecessary? If I understand the Help file correctly, global variables are and local variables are not?
-
Thanks, great advice Kind regards
-
I have decided to do a complete clean reinstall. No wonder things fail from time to time, 2068 Registry keys were leftover from the uninstall
-
When I try to start Delphi (12.2) I get an error, List index out of bounds (6) TList range is 0..5 When I click OK the program closes. I have tried to reinstall, but did not help. Any ideas?
-
try aDialog:=TMyDialog.Create(self); ... ... finally aDialog.Free; end; I keep getting warnings about a dialog created inside a Try/Finally, why is it bad practise?
-
[dcc32 Warning] uMain.pas(1154): W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
Skrim replied to Skrim's topic in General Help
LOL, I have been using Delphi since version 2 and I did not know that I always declare string as aString : string; never aString : string[3]; But a lot of these string values are saved to a database field declared in the database as a string with a fixed length, could that be the reason for the error? Kind regards -
Here is my code, also could it be done easier/more elegant // String 000001203 to 1203 // Numbers of zeros to the left could be 1..n function RemoveZeroLeft(var s : String) : string; var i, j : integer; begin for i:=1 to length(s)do begin if s<>#48 then begin j:=i; break; end; end; result:=copy(s,j,length(s)); end;
-
I get this warning, what does it mean? [dcc32 Warning] HovedUnit.pas(13295): W1036 Variable 'j' might not have been initialized J is an integer. Do I have to do, J:=0;
-
D12 When I doubleclick in Event OnGetEditText to make an event handler in a stringgrid I get this error. "Property and method MyGridOnGetEditText are not compatible." The event is empty. It had some code earlier, but that is deleted together with its declaration. From Delphi Help file "You are assigning a method to an event property even though they have incompatible parameter lists. Parameter lists are incompatible if the number of types of parameters are not identical. For a list of compatible methods in this form, see the dropdown list on the Object Inspector Events page." Any ideas how to solve this?
-
FYI - Several Embarcadero services are currently unavailable
Skrim replied to Keesver's topic in General Help
Nice I'll quote that one next time I cannot deliver on time and I'm facing fines (Usd 100 per. customer per day) for not delivering by the deadline.