Re: [MSEide-MSEgui-talk] What is 'ifi'?

2021-04-15 Thread fredvs
Hello Roland. About your error with demo of Med, I get also that error doing this in console: The demo is in directory "/home/fred/mse_ifi", so first: $ cd /home/fred/mse_ifi then $ ./dbfilter Gives that error: fred@fiens ~/mse_ifi> ./dbfilter An unhandled exception occurred at $0057

Re: [MSEide-MSEgui-talk] What is 'ifi'?

2021-04-16 Thread fredvs
Hello Roland. There is that answer from Martin: https://forum.lazarus.freepascal.org/index.php/topic,39416.msg270457.html#msg270457 Also, in a fpc mail , they said: "- Martin provides the "IFI" add-on that allows for remoting the GUI (designed in MSEIDE) of a program via (e.g.) TCP/IP." But not

Re: [MSEide-MSEgui-talk] What is 'ifi'?

2021-04-16 Thread fredvs
Hello Med. Yep, many thanks, something to eat there ;-). I see also now, thank to you, this: https://github.com/mse-org/mseuniverse/tree/master/attic/msedocumenting/mse/trunk/help/tutorials/mseifi OK, I will jump into it (asap) and I hope to finally understand that magic ifi. Fre;D -- Sent f

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-17 Thread fredvs
roduce executable using LLVM. You may try the demo included in https://github.com/fredvs/mselang/releases. Martin was busy with the RTL but only the basis is done. For example, for console app, "writeln()" is working (like charm) but "readln" was not yet implemented. > 3. A

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-17 Thread fredvs
> And lastly, what was the actual goal of MSELang? Was it to introduce a > more modern "Object Pascal" like syntax, or only to use LLVM as the > code generator (thus more optimised code or more platforms)? Or a > combination or these? >From what I understood, the goal is to keep the "Object Pascal

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-17 Thread fredvs
Re hello Graeme. Note that there is only working releases 32 bit (including FreeBSD). Martin did not yet make a 64 bit version of MSElang. I did try to make a 64 bit version but I was stopped about class conversion to 64 bit (no skill enough). That said, once the mli and bc file is produced, no

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-17 Thread fredvs
> 2. How far did Martin get with it The last commit of MSElang date of Nov 28, 2018 11:05am https://gitlab.com/mseide-msegui/mselang/-/commit/353afb4f8d3d7cc9b1af35f0a417bb25ec53a4a6 And Martin leave us the November 29, 2018. ;-( Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabbl

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-17 Thread fredvs
> Umm, this sounds very interesting. I'll definitely take a look around > MSELang and try it out. If you like FreeBSD (that "is" LLVM and uses only clang now), once you have a working bc LLVM bitcode file, you are the king. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-17 Thread fredvs
> If you really want to keep this alive, try finding some computer science > university students with an interest in compiler writing. Hello. I did present mselang to LLVM mailing-list: http://clang-developers.42468.n3.nabble.com/Clang-Windows-and-stdout-td4063613.html And also on a LLVM forum

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-18 Thread fredvs
> I remember that Martin seemed enthusiastic about the progress of MSElang, so > I think this is a project that would be really worth continuing. The skill of Martin is the highest that I met. He is the only one in the world that was able to create a compiler who produces LLVM Bitcode File Format

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-18 Thread fredvs
Hello Alexander. > Martin did not have time to fully connect MSE and MSElang. Indeed it was just in plan to do the junction with MSElang and MSEguI. His plan was to have something working before the end of 2018. By the way, if the project mselang continue, imho, it would be easier to first make

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-19 Thread fredvs
> And why do you need LLVM when using Pascal? Because LLVM does it much better for float calculation for example. "Pure" fpc is ok for database applications for example but once you work with animation, DSP, live sound effect, etc, where lot of float calculation is needed, the result is much slo

Re: [MSEide-MSEgui-talk] Status of MSELang

2021-04-19 Thread fredvs
Hello. There are some test-benchmark of mselang here: https://github.com/mse-org/mselang/tree/master/src/benchmark -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge

Re: [MSEide-MSEgui-talk] Feature Request: MSEide compiler output window suggestions

2021-04-25 Thread fredvs
Hello Graeme. Indeed, there are problems. I will jump into it asap (first ideU and when all ok -> MSEide). Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.n

Re: [MSEide-MSEgui-talk] Feature Request: MSEide compiler output window suggestions

2021-04-25 Thread fredvs
Hello. Added in commit 6bd86 of MSEide extended popup in message form. With various types of copy to clipboard and search in messages. Just right-click on Message form to see the pop-up. I hope all is ok and if something is missing, please say it. Fre;D -- Sent from: http://mseide-msegui-tal

Re: [MSEide-MSEgui-talk] Feature Request: MSEide compiler output window suggestions

2021-04-26 Thread fredvs
Re-hello. You may use the pop-up (right click) to choose options. You may use also shortcuts, to copy all Messages, please use Shift+Ctrl+A (Ctrl+A is not disposable there). To Find in messages = Ctrl+F, copy selected = Ctrl+S, copy line focused = Ctrl+L. Fre;D -- Sent from: http://mseide-ms

Re: [MSEide-MSEgui-talk] What is 'ifi'?

2021-04-28 Thread fredvs
Hello Med. Many thanks for the demo. But can you explain how to use it? Thanks. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourcefo

Re: [MSEide-MSEgui-talk] Forum

2021-04-28 Thread fredvs
Hello Med. You may try https://stackoverflow.com/ I did use it some time and have success with the answers. There is a forum of MSE-org here: http://mse-org.111682.n8.nabble.com/ But there is very few movement. What optimization code and other features that no other programming language offers

Re: [MSEide-MSEgui-talk] Unit MSEmidi

2021-04-30 Thread fredvs
Hello Roland. > Have you ever noticed that there is a /msemidi/ unit? Yes but I never try it, so when you drink your beer, I will drink a Coca-Cola with you. In the past I did try to make work fpmidi but without luck. It would be very great to have a (easy to work) midi interface for Linux. MSE

Re: [MSEide-MSEgui-talk] Unit MSEmidi

2021-04-30 Thread fredvs
Hello Roland. > I have never heard of fpmidi. Are you sure of the name? Ooops, no, it is a component from breakoutbox: http://breakoutbox.de/midi/ > Do you think of something like connecting a keyboard to your computer and playing music? I Yes, I dont want to connect a usb keyboard, to much wo

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-03 Thread fredvs
Hello Med and Pat. I have zero knowledge in MSEgui database. I did try the demo of Med + the instruction of Pat and it compiles. But it does not work because Firebird is not installed on my system. @Med: are you able to compile your demo + run with msegui 4.6 ? Because we did not touch to the

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-03 Thread fredvs
> @Med: are you able to compile your demo + run with msegui 4.6 ? With fpc 3.2.0 of course. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://l

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-03 Thread fredvs
>From Pat: > Search for "FIRST_NAME" and delete the 'size = 15' line below it. Should > be at lines 99 and 117 > There should be 2. Maybe totally not concerned but once you have done this, you may re-create the "size" field with the Object Inspector: See picture:

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-04 Thread fredvs
Hello Med. > This sample works with Ver 4.6. and FPC 3.20. Ha, that is excellent news. Yesterday I spent many hours to try to install FireBird and MySql on my Linux 64 bit Debian machine. Without luck ;-(. Do you have some advices how to install those programs? For example, with the demo /

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-04 Thread fredvs
Re-hello Med. > This sample works with Ver 4.6. and FPC 3.20. I just try to compile your demo with mseide + msegui Ver 4.6. and FPC 3.20 but without luck, here is the error at compilation: msegraphedits.pas(126,19) Error: No matching implementation for interface method "getdefaultifilink:iifi

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-04 Thread fredvs
Hello Med. After a very hard fight I was able to install MySql on Linux 64 bit. Also here /mseuniverse/samples/db/simplemysql demo is working with fpc 320 and msegui 5.2. Are you able to make it work too? I had to create a test.sql database and a table using command line: $ mysql -uroot -pmypass

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-04 Thread fredvs
Re-re hello Med and others. Voila, I think that FireBird 3 is correctly installed. With your demo I can access employee database. But, sadly, when trying to set tmsesqlquery1.active := true there is that error message: Field 'EMP_NO' expected ftsmallint Actual: unknown. See picture:

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-05 Thread fredvs
Hello Med. > See tmsesql.controller.fields .The problem is there. OK, I will check it. > Try with (MseIde 4.6.3 Msegui 4.7.0 ) On Linux it is not possible to use MSEgui 4.7.O and fpc 3.2.0: they are not compatible. And I dont have a Windows machine to test. > Is the version 5.2 updated the

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-07 Thread fredvs
Hello Med. Here it works doing this: Edit tmsesqlquery1 with the Object Inspector. Select tmsesqlquery1.controller.fields.count and set it to 0. Then set tmsesqlquery1.active := true;

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-07 Thread fredvs
Re-hello Med. So, to resume, it seems that, like for the "size" problem, with MSEgui 5.2.0, if you import a old fb3 project, you have to first delete the controller.fields and then re-create it. Or delete the all the component and re-create it using msegui 5.2.0. I created a new project from scra

[MSEide-MSEgui-talk] Installing FireBird 3.0 on Linux.

2021-05-07 Thread fredvs
Hello. Here a working easy way to install FireBird: 1) Download the last version for your OS here: https://firebirdsql.org/en/firebird-3-0/ 2) Unzip it somewhere. 3) Go in the directory: $ cd /somewhere/Firebird-3.0.7.33374-0.amd64 4) Install it with: $ sudo somewhere/Firebird-3.0.7.33374

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-08 Thread fredvs
Hello Med. What project are you using? With the last project I give, I get this: Here the last project I give: mse_fb3_new.zip Note that I di

[MSEide-MSEgui-talk] FireBird or MySql ?

2021-05-08 Thread fredvs
Hello. I re-jumped (thanks to Med) into databases. Long ago I was using Microsoft SQL server or Borland-Delphi BDE. Now, as Open-Source converted, I prefer to use something Open-Source. But it seems to be a kind of war for this, like the "Mac vs Windows" war. Some people say MySQL is a joke, Fi

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-08 Thread fredvs
segui-talk.13964.n8.nabble.com/file/t2/ideU_db.png> May I ask you if it could be possible for you to load the project with ideU ? https://github.com/fredvs/ideU/releases/ ideU is a fork of MSEide and it works like MSEide. If, by chance, you have more luck with ideU, we have light to see what is wro

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-08 Thread fredvs
Med! Sorry, dont use the last release of ideU, it is the last commit that works. So, please wait a little bit, I check everything but we are near the goal. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk m

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-08 Thread fredvs
Hello Med. I am lost. I cannot find what I did to make it work with ideU. Sadly I did not commit the change to git and stupidly I removed that working test directory. I have to do a break otherwise I will be completely crazy. I hope that I will remember what I did but now it is the black out.

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-08 Thread fredvs
Hello Med. I hope it is the last one. Fixed in last commit: https://github.com/mse-org/mseide-msegui You will need to recompile MSEide with those last msegui commit. After this, reload your project using last msegui and i

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-08 Thread fredvs
Hello Med. Released mseide-msegui 5.4.0 with the (I hope) DB field fixes: https://github.com/mse-org/mseide-msegui/releases/tag/5.4.0 You may use the binary of MSEide and source that are in the assets. I still cross my fingers. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.c

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-09 Thread fredvs
Hello Med. Happy that it works! Thanks for your txt notes, I will study it tonight. By the way, feel free to complete your demo (with filters, search, commander, etc, ...) because I did not find any demo in mseuniverse that shows how to do with fb3 database. And then we can add your demo in mse

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-09 Thread fredvs
Hello Med and others. About the warnings of range error. It is about some strange use of enum by Martin. I would need some help to fix it. For example, this is used: Const de_afterapplyupdate = ord(high(tdataevent))+6; and a few later: dataevent(tdataevent(de_afterapplyupdate),0); // this,

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-09 Thread fredvs
Re-hello. About the error range warnings with enums. OK, I remember now how to fix it (there was discussion about this 2 years ago). The trick is to remove all the "extended members of a enum", like const extendedenum1 = ord(high(tdataevent))+1; extendedenum2 = ord(high(tdataevent))+2; end

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-09 Thread fredvs
Hello Med. > I have some notes and warning see joined txt. OK, fixed in last commit. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sour

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-09 Thread fredvs
Hello all. > OK, fixed in last commit. NO, it was not ok and caused "Unknown" fields. So I reverted that commit to prior. And there are still now the warnings, sorry. I have to jump into it deeper and will do it asap. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___

Re: [MSEide-MSEgui-talk] tmsesql

2021-05-09 Thread fredvs
Re-hello all. OK, I hope it is the good one. Fixed in last commit all warnings about range check in enums of DB units. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.s

Re: [MSEide-MSEgui-talk] Unit MSEmidi

2021-05-10 Thread fredvs
Hello Roland! Sorry for the long delay, I am hyper-sur-booked. I did try your attachment but did not find the "program" file (I found only units-files). How to make it work? Thanks. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

Re: [MSEide-MSEgui-talk] TskinControler

2021-05-10 Thread fredvs
Hello Med! > Ps: This subject was discussed with Martin see > https://www.mail-archive.com/mseide-msegui-talk@.../msg12773.html Ooops, that was a big discussion! Sorry but I am a little lost, what is the problem-goal of the discussion? Is it something that you need, or is there a bug to solve

Re: [MSEide-MSEgui-talk] TskinControler

2021-05-10 Thread fredvs
Hello Med! > Realy I do not know if it's a bug . But if I set the theme file into > datamodule as .sta file this one is not read by skincontroller? Hum, I never used skincontroller, for theming, I use the the "template" property of each component for frame, face, etc and the "template" propert

Re: [MSEide-MSEgui-talk] TskinControler

2021-05-10 Thread fredvs
Hello Med! > I use 5.4.0 fisrt update and till now I have not any problem with > database units. Yep! Did you try with last commit of MSEgui, is it ok with the warning (and of course does it not break anything)? https://github.com/mse-org/mseide-msegui/archive/refs/heads/master.zip Fre;D

Re: [MSEide-MSEgui-talk] TskinControler

2021-05-11 Thread fredvs
Hello Med. You may use the "nabble mse mailing-lis": http://mseide-msegui-talk.13964.n8.nabble.com/ Then, like Roland said, click on the button "More" + "Upload a file". You may also use Github: create a issue and add th

Re: [MSEide-MSEgui-talk] FireBird or MySql ?

2021-05-11 Thread fredvs
Hello Funlw65. Thanks for the infos. Indeed there is lot of positive advice about FireBird and less for MySQL. But following DB-Engines Ranking from: https://db-engines.com/en/ranking MySql = 2th (Oracle is first) and FireBird is only 31 th. Fre;D -- Sent from: http://mseide-msegui-talk.139

Re: [MSEide-MSEgui-talk] Unit MSEmidi

2021-05-11 Thread fredvs
Hello Roland. > (The "program" keyword is omitted.) Ha, ok, I did not know that it was permitted. I will jump into your code tonight. Thanks. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list

Re: [MSEide-MSEgui-talk] TskinControler

2021-05-11 Thread fredvs
> Here is the demo asking for https://github.com/mse-org/mseide-msegui/files/6459528/demo.zip Perfect and welcome to GitHub. Thanks. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-mse

Re: [MSEide-MSEgui-talk] FireBird or MySql ?

2021-05-17 Thread fredvs
Thanks Graeme for the infos. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Re: [MSEide-MSEgui-talk] TskinControler

2021-05-17 Thread fredvs
Hello Med. > Here is the demo asking for > https://github.com/mse-org/mseide-msegui/files/6459528/demo.zip Thanks but I dont see any source-code. Also, how to use that program? Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ __

Re: [MSEide-MSEgui-talk] [fpc-other] FireBird or MySql ?

2021-05-17 Thread fredvs
Thanks Santiago, Graerme and Vasi for the light. The good news is that MSEgui offers: . TFBconnection (to use early Firebird), . TFB3connection (to use Firebird 3.0), . TMSEPQconnection (to use PostgreSQL 3.0), . TSQLiteconnection (to use SQLite3) . TOBDCconnection (to use ODBC) . TMSEMYSQLco

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-18 Thread fredvs
Hello Med. > In the SRC of msebufdataset.pas there is a function to check that ( > checksumfield) and abort the task. Hum, in msebufdataset.pas I see a "procedure checksumfield" not a "function checksumfield": procedure tmsebufdataset.checksumfield(const afield: tfield;

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-18 Thread fredvs
Hello Med. Here is tmsebufdataset.sumfield: What about only comment the first line after begin ? Is it what you want? If so, maybe we can add a parameter (, nocheck) or create a new procedure without check (procedure sumfield_nocheck). procedure tmsebufdataset.sumfield(const afield: tfield; out

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-18 Thread fredvs
Hello Med. > What do you think? I would vote for this (set bCheck default to true for compatibility with previous code): procedure msebufdataset.sumfield(const afield: tfield; out asum: double; bCheck: boolean = true); And do it for all the other sumfield() (integer, currency, float, etc). F

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-18 Thread fredvs
> An other option is possible > We can set aFields.optionsfield of_user0 to (true or false ) Nice too. (but more tricky). Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-18 Thread fredvs
> Now summing ftinteger FIELD into currency VAR gives 0 ? Please, give code example, it is really difficult to understand otherwise. -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-mse

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-18 Thread fredvs
Re-hello Med. > Now summing ftinteger FIELD into currency VAR gives 0 ? Sorry but I dont understand. Why do you want to sum ftinteger field into a currency var? Why not sum ftinteger field into a integer var and after this, convert the integer var into a currency ? -- Sent from: http:/

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-18 Thread fredvs
Ha, OK, indeed, nicer. (But I like your first peace of code too.) For the new code, maybe using a variant variable and create a new sumfield() procedure: procedure tmsebufdataset.sumfield(const afield: tfield; out asum: variant); But for this, we need a variant-guru (I am beginner in variant ty

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-19 Thread fredvs
> Martin did not introduce variant_sumfield then for me it's not recommended. I agree and also it seems that using variant will make all the process slower. In the last code you give, in the first peace of code: procedure tfrmbasePagefo.DoSum(oDbGrid: TDbwidgetgrid; iRow:integer); VAR n:curre

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-19 Thread fredvs
Hello Med. Maybe you can complete the code checking all types that can be summed: if (oField.datatype = ftinteger) then B1 else if (oField.datatype = ftcurrency) then B2 else if (oField.datatype = ftfloat) then B3 else if (oField.datatype = ftbcd) then B4 else if (oField.datatype = ftdate)

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-19 Thread fredvs
Re-hello Med. sumfield is only implemented for double, currency, integer and int64: procedure sumfield(const afield: tfield; out asum: double); overload; procedure sumfield(const afield: tfield; out asum: currency); overload; procedure sumfield(const afield: tfield; out asum: integer)

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-20 Thread fredvs
Hi Med. > Numeric (x,y) Hum, indeed, I just check and there is that "numeric" type for DB (that I did not know). I have to deeply study those DB features. (And it is why some demos from you will be more than welcome). Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ _

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-20 Thread fredvs
Hello Med. > if .col[i] is tdbintegeredit then b1 else b2 In a form1.mfm, the kind of widget is declared as this: object atwidgetgrid: twidgetgrid ... datacols.count = 1 datacols.items = < item[something] width = 20

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-20 Thread fredvs
Re-hello Med. With this it compiles but I did not test for database: if twidgetcols(atwidgetgrid.datacols[i]).getitemclasstype = tgridintegerdatalist then ; Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-tal

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-21 Thread fredvs
Hello Med. Would it not be possible to give a short complete demo of your code? For me it is very difficult to understand-help only with short piece of code. With concrete example maybe other people and me could understand-help for what you are looking for. > see piece of my mfm file. there is

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-21 Thread fredvs
Re hello Med. Ok, I am near my crystal ball. Not sure to see well but it seems that you use a tdbstringgrid for grid. If it is the case, could you try this: - Add "msewidgetgrid," in the uses section of your "main.pas" file (if not already there, of course). - Use this to know what kind of col

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-22 Thread fredvs
Hello Med. > Your Crystal ball is very strong. It saw right 😊 . Yes, when I clean it a few, there are beautiful things to see sometimes. By the way, a side is still dirty and I cannot wash it at the moment. For example: > There is a segmentation fault lib/common/widgets/msewidgets.pas >b4206

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-22 Thread fredvs
Hello Med. It seems to me ok to add a parameter for your new object/method. And I will be very happy to test this wonder in your MSE-DB demo. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list ms

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-23 Thread fredvs
Hello Med. > we can not sum integer field into a currency VAR with Martin's sumField > Procedure? Does it happen only with last msegui 5.4.0 or was it the case with previous version 4.6.0 too? Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-23 Thread fredvs
Hello Med. OK (but for me only part of code you give is like you are talking in Martian). Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-23 Thread fredvs
Re-hello med. > s:=s+query.fieldbyname( < INTEGERFIELD>).value; Ha, maybe I get it. If I understand ok, with your code it works, but with Martin's code using sumfield() it does not work. If so, do you think it would be possible to create a new sumfield() that uses your code and that will work?

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-23 Thread fredvs
Hello Med. > There is probably a raison? It seems that Martin wanted that the field-type is the same as out-sum variable. It is the reason why he added the "checksumfield" method at init of each "sumfield" method. But why, I dont know (because your code shows that it is possible to add integer f

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-23 Thread fredvs
Re-re-re hello Med. Hello Sieghard. After deeper look into procedure tmsebufdataset.sumfield(const afield: tfield; out asum: currency); Here my conclusion: There are only: case ffieldinfos[afield.fieldno-1].base.fieldtype of ftbcd: ftfloat: And I dont see really why tfinteger: is banned.

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-23 Thread fredvs
Hi Med + Sieghard. I would propose this: procedure tmsebufdataset.sumfield(const afield: tfield; out asum: currency); var int1,int2: integer; index1: integer; po1: precheaderty; po2: pprecheaderty; bo1,bo2: boolean; state1: tdatasetstate; begin checksumfield(afield,[ftinteger,ftbcd,ftfloat

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-23 Thread fredvs
Hello Med. The last for tonight. Could you try changing your /mseide-msegui/lib/common/db/msebufdataset.pas with the one in attachment? msebufdataset.zip This one enable (I hope) to add integer-fields into currency vari

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-24 Thread fredvs
Hello Med. > because not all programmers want to sum integer into currency? Dis you try the msebufdataset.zip of my previuos post? No problem if a programmer want to sum integer into integer, he may still use: procedu

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-24 Thread fredvs
Hello Med. To resume, I propose this for the patch: procedure sumfield(const afield: tfield; out asum: currency); "afield" type could be: [ftinteger,ftsmallint,ftword,ftbcd,ftfloat] // should we add ftlargeint? procedure sumfield(const afield: tfield; out asum: double); "afield" type

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-24 Thread fredvs
Hello Med. > the line code which raise this error: > if tdbwidgetcols(odbgrid.datacols[iCol]).getitemclasstype = tdbintegerEdit > then ... Here I dont get error (but I dont have all your code and I dont find my ball) Hum, I dont understand fully the mse-synthax but could you try with this: (see

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-24 Thread fredvs
Re_hello Med. You may try this (from previous post): if tdbwidgetcols(odbgrid.datacols.cols[iCol]).getitemclasstype = tdbintegerEdit then There is also this one: if tdbwidgetcols(odbgrid.datacols.items[iCol]).getitemclasstype = tdbintegeredit then ... But I really would prefer that you sh

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-24 Thread fredvs
Re... hello Med. Maybe you may try a other way. It seems to me that the kind of column in a BDStringgrid is assigned when you connect the fields to the tmsesqlquery1-field. So if you want to know the kind of column in a BDStringgrid, this should work: var str : string; datatype: tfieldtype; ...

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-25 Thread fredvs
Hello Med. **Many** thanks for the demo, much easy to understand now. Indeed, here there is a error with: if tdbwidgetcols(odbgrid.datacols.items[iCol]).getitemclasstype = tdbintegerEdit then showMessage( 'DONE '); I get that error (and I dont understand why): "testf" 0x00658f11 in S

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-25 Thread fredvs
Yep Med. Using this is ok here: if tdbwidgetcol(odbgrid.datacols.items[iCol]).datalink.field.datatype = ftInteger then showMessage('It is a ftInteger'); (But maybe it is not what you want) Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-25 Thread fredvs
Hi Med. In attachment, your project with type of column enabled: test__med.zip Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ __

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-25 Thread fredvs
Re re re hello Med! In attachment your project with name and type of column: test__med.zip Fre;D -- Sent from: http://mseide-msegui-tal

Re: [MSEide-MSEgui-talk] RTTI

2021-05-27 Thread fredvs
Hello Med. Sorry but once again, isolated code out of context is difficult to understand. Using your demo, doing this works: showMessage(tdbintegeredit1.datalink.fieldname); showMessage(tdbintegeredit1.datalink.datasource.dataset.name); showMessage(tdbrealedit1.datalink.fieldname); sh

Re: [MSEide-MSEgui-talk] RTTI

2021-05-27 Thread fredvs
Hello Med. Here, using your demo, this work: PropInfo := getpropinfo(typeinfo(tdbintegeredit1),'datalink'); showmessage(PPropInfo(PropInfo)^.Name); -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing li

Re: [MSEide-MSEgui-talk] RTTI

2021-05-27 Thread fredvs
Re-hello Med. Ok, I understand now what you want. I dont know how to do to access properties with Getpropinfo(). (But I will be very happy to learn how to use it). Sorry for the noise. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___

Re: [MSEide-MSEgui-talk] RTTI

2021-05-27 Thread fredvs
Hello Med. Yes, my ball shows it. Like said in previous post, I have to learn that RTTI stuffs more. But, what about to use something like this: procedure infotiersfo.onsetValue(const sender: TObject; var avalue: Integer; var accept: Boolean); begin if sender is tdbintegeredit t

Re: [MSEide-MSEgui-talk] RTTI

2021-05-27 Thread fredvs
> BTW GetStrProp ( sender, 'name') gives the tdbintegeredit1,then why not datalink.dataset? I dont know, I have to jump into GetStrProp and friends. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-tal

Re: [MSEide-MSEgui-talk] RTTI

2021-05-27 Thread fredvs
Hello Med! This work here (but still need the case of) case sender of tdbintegeredit: showMessage(GetStrProp(tdbintegeredit(sender).datalink.datasource.dataset, 'name')); -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-m

Re: [MSEide-MSEgui-talk] RTTI

2021-05-27 Thread fredvs
Hello Med. OK. But what about msebufdataset.pas, should I commit the changes? Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge

Re: [MSEide-MSEgui-talk] BufDataset

2021-05-28 Thread fredvs
Hello Med. > Is it safe to apply the patch ( buffdataset and VERSION.TXT ) ? If you used the last buffdataset.pas that I provided for me all seems ok too. (Here is the file concerned:) msebufdataset.zip The new version

Re: [MSEide-MSEgui-talk] fpGUI lost drag n drop example in new environment

2021-06-04 Thread fredvs
Hello. For fpGUI stuffs please use the site http://geldenhuys.co.uk/webnews/ or use GitHub and create a issue: https://github.com/graemeg/fpGUI/issues . Thanks. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-t

[MSEide-MSEgui-talk] test server

2021-06-06 Thread fredvs
It is a test to see if server is OK. -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Re: [MSEide-MSEgui-talk] BufDataset

2021-06-07 Thread fredvs
Hello Med. > I think it's safe to apply the patch. OK, done with commit ee9b368b4 > In the case of sum the same code is repeated 4 times , I believe. I want > to optimize that if it's possible? Of course, please do it ( and do a pull-request when you are ready). Fre;D -- Sent from: htt

Re: [MSEide-MSEgui-talk] mseide configure

2021-06-07 Thread fredvs
Hello Code DZ. Hum, indeed, changing something in msesettings form add properties for each tfilenameedit.controller : controller.panel = False controller.compact = False controller.showhidden = False Those properties are for the new component tfilenameeditX. There is then a con

<    7   8   9   10   11   12   13   >