i got all the versions - thanks
i am actially using -S2gch (which is -Mobjfpc ??) in /etc/fpc.cfg there must be something else in /etc/fpc.cfg i'm not seeing revision 5 compiles fine but even with your -Mobjfpc header i still had to add the 'byte()' > > Buffer := Chr(byte(Command)) + SQL; you asked if i had any suggestions .... are you planming on making this a unit library for the synapse code? btw your MDB.Query( function makes doing stuff very easy just great code - i appreciate the opporunity to compile it :) On Wed, 9 Aug 2023 18:37:09 +0200 Rik van Kekem <r...@graficalc.nl> wrote: > Op 09-08-2023 om 16:46 schreef paste...@gmx.com: > > revision 4 is at the link for revisions 2 3 and 4 is there separate > > links for revisions 2 and 3? > > https://gist.github.com/rvk01/ac22d368b8d1f7d537cf0c67389bda20 > O, I thought it was easier to get at all revisions. But it is possible. > Click revisions at the top left. > Scroll to the revision you want and click the three dots at upper right > and choose "View File". > > BTW. I accidentally deleted the gist (I though you could delete > individual revisions but you can't ;( ). > > I recreated the gist at > https://gist.github.com/rvk01/33402eb26b9373ce6b71cd3cdfd7d9b7 > > So the revisions are: > revision 1: > https://gist.github.com/rvk01/33402eb26b9373ce6b71cd3cdfd7d9b7/bd56db0237bd4c5b7bce84ffb184b1daae6b07b0 > revision 2: > https://gist.github.com/rvk01/33402eb26b9373ce6b71cd3cdfd7d9b7/920c4609d37212269f22131be30fba7103eb033e > revision 3: > https://gist.github.com/rvk01/33402eb26b9373ce6b71cd3cdfd7d9b7/c9c901ed34e5b89c028877a669c90781cbf058ec > revision 4: > https://gist.github.com/rvk01/33402eb26b9373ce6b71cd3cdfd7d9b7/1f1f631f59d59131e950e1a9803bcafe69c0945e > (I just added revision 5 with some adjustments about the tfields, so > it's at revision 5 now) > > BTW, why are you using -Mfpc ? > Isn't it better/easier to use -Mobjfpc? > > In the last revision I used objfpc as switch at the top. > > Doing it in FPC mode will change a lot of things (including the missing > Result := possibility etc). > > > > the line Buffer := Chr(Command) + SQL; gives the following compiler > > error > > testmariadb4.pas(487,26) Error: Incompatible type for arg no. 1: Got > > "MySqlCommands", expected "Byte" > > > > so i changed it to > > Buffer := Chr(byte(Command)) + SQL; > You, also because you use fpc instead of objfpc. > > My last version should work without changing anything. (it'll compile as > objfpc automatically because of the switch at the top) > > Grtz, > Rik _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public