[fpc-pascal] Directory Tree
James Richters
james.richters at productionautomation.net
Mon May 3 13:55:12 CEST 2021
>Just for notice: classes and objects are not particular to Lazarus, it's plain Object Pascal, understood by Freepascal and Delphi whatever the context( console, graphic/Lazarus or javascript/pas2js)
I have some classes and objects in my console programs, but they are there to get some new features to work and are mixed it with my turbo pascal code. I never really fully understood them.. only a vague idea of how they work.
>Defining it in public in TText_to_PDF is a good idea.
I tried putting it under the destructor in public… above the private variables, but it wouldn’t compile there I thought it would have to be above all the functions and procedures… and there is no Var for variables and there are two public and two private definitions, I don’t really understand what’s going on… Can I just mix up variables with functions and procedures since there is no Var declaration? Or is there an order that must be followed?
>(Sorry, I've renamed a lot of things)
Thanks, I’m still trying to pick up the naming conventions. For some reason all my form changes got reset. I merged them back in and pushed it. I made the background of the information boxes white, not invisible that’s why I set them to ‘ ‘ at the beginning.. so the white boxes would be visible. I also padded the text in the boxes with spaces so the white background would make a border around the text. I also re-arranged a lot of things, added horizontal scroll bars and shut off word wrap on the results panel.. removed extra buttons we don’t need now with the menu, etc.. Let me know what you think of my form design.
Any idea how I change the format of M.Text=’[Date]’; in uText_To_PDF.pas ? It shows up 2021-05-03 (Which I actually like better because it sorts properly) but here in the USA 05-03-2021 is customary. I don’t see where [Date] gets filled in with the date or how to define the format of it. I think I could make my own date format, but I don’t want to over-complicate things.
Thank you for the help.
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210503/9869f3a4/attachment-0001.htm>
More information about the fpc-pascal
mailing list