[fpc-pascal] Open file for append when exists else create new one

2019-07-09 Thread LacaK
Hi, I want to achieve this: If file with given name already exists then open it for append else create new one and open it for append. I use something like:   FileName:='FileName'+formatdatetime('yymmdd',date)+'.log';   if FileExists(FileName) then F:=FileOpen(FileName, fmOpenWrite+fmShareD

Re: [fpc-pascal] specify variable name with string variable

2019-07-09 Thread Santiago A.
El 08/07/2019 a las 22:43, James Richters escribió: ports that are defined by port numbers and pins in an ini file, Well, then they are dynamic. They are not hardcoded. I would use something like: TPortIdentifier=(Pin_1, pin_2, Port_x, Port_y...); TIOPort=object private FPo