TFT and User code, spaghetti of Functions
Posted: 07 Jun 2015 12:30
Now user code and user routines are in the same sheet - window.
I have 4 screens with 8 to 12 elements on each screen
All event function is in the same window
Now I have spaghetti of functions
Please redesign user code window with two lists on the top Like Microsoft Visual Basic windows
At the left list, List Screens and user Declarations
At the right list, List all events functions and user functions
How to delete an unused function
Just delete the function: Select the function from the right list
And delete listed code OR place a button "Delete this function"
This will delete all instances from the events, declaration etc
If I need an new function
In a new empty window OR with a “New function button”
I will write the function. The program will do the declare and lists it tin the list
Now If I want to use in the code ok else leave it there with the other code
I have 4 screens with 8 to 12 elements on each screen
All event function is in the same window
Now I have spaghetti of functions
Please redesign user code window with two lists on the top Like Microsoft Visual Basic windows
At the left list, List Screens and user Declarations
At the right list, List all events functions and user functions
How to delete an unused function
Just delete the function: Select the function from the right list
And delete listed code OR place a button "Delete this function"
This will delete all instances from the events, declaration etc
If I need an new function
In a new empty window OR with a “New function button”
I will write the function. The program will do the declare and lists it tin the list
Now If I want to use in the code ok else leave it there with the other code