Results 1 to 6 of 6

Thread: Linked List Tool / Helper

  1. #1
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    405

    Linked List Tool / Helper

    I made a new tool tonight to help with what I am working on and liked it enough to want to share it with you guys.
    There is a help.html file that shows how to use it.

    This app helps you generate linked list files that you can store externally to your applications.
    This way you don't have to hard code such lists in your program and can update or make changes
    to such things easily without messing up any existing code.

    Updated the file to correct the mistakes pointed out by Eros. Thanks for catching them Eros.
    Attached Files Attached Files
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: Linked List Tool / Helper

    Big thanks Kent.
    Can I add this script to official thinBasic distribution?

    _________________________________________________
    Just 3 notes on this source:
    • better to use app_sourcepath instead of DIR_GetCurrent. DIR_GetCurrent can return a path different from the script path.
    • at the end
      DIALOG END %formLinkedListHelper
      should be
      DIALOG END hDlg
    • DIALOG NEW PIXELS , 0, "Linked List Helper", 0, 0, 192, 366, %WS_SYSMENU, %formLinkedListHelper TO hDlg
      I do not understand the use of %formLinkedListHelper. In that position there is the dialog extended style attribute. A dialog as no ID like a control. I think %formLinkedListHelper can be removed from the script.


    Again a big big thanks for the examples you are posting. Very nice, well written, clever.
    I like your commenting style
    [code=thinbasic]
    '---+------------------------------------------------------+
    '---| MAIN PROGRAM |
    '---+------------------------------------------------------+
    [/code]

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Re: Linked List Tool / Helper

    Thanks Kent,

    nice program, I didn't know LLs can be saved/loaded to/from file.

    Eros, the commenting style is definitely output of Kents Remmer, I use it quite frequently too for serious work


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #4
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    405

    Re: Linked List Tool / Helper

    Glad you guys liked it and I will make changes to thinForm to fix those errors Eros, thanks for catching them.
    I am using Remmer for the comments. I finally settled on that look, I have been changing it so often. Sometimes **** looks good or ===== but in the end they look heavy with certain colors when I change my color settings.
    This one sometimes looks light again depending on the color, but better light than heavy I think

    updated the upload with corrections.

    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  5. #5
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    58
    Posts
    3,299
    Rep Power
    348

    Re: Linked List Tool / Helper

    Nice tool. I'm surprised that you can save/load them too but I think it is because of the nature of an interpreted language, or?

  6. #6
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: Linked List Tool / Helper

    Well, no.
    It is just a functionality that read strings from the linked list and save them to disk (only data of course not memory address links)
    When needed, load function read a previouly save file and creates a new linked list on the fly getting strings from file.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

  1. Linked Lists
    By Petr Schreiber in forum thinBasic General
    Replies: 1
    Last Post: 22-09-2005, 23:10

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •