Your post is litle confusing and that makes people unsure what you are trying to achieve.I am pretty sure that you want to change single or multiple variables in your code from your program to make the program operate with the new value of picked variable and not that you want to change whole part of the code.If you want to be shown i think you want to be changeble from whatever who is using your program.What must be done?
I am posting for you a snipet that you may assume useful:
simpleVariable as integer `We set picked variable as integer type.
simpleVariable=0 `We set our variable to 0
rem Our main loop starts here.
do
Print "The variable simpleVariable= :",simpleVariable
input "Change variable ""simpleVariable"".New value: ",simpleVariable
if simpleVariable=0
cls
Print "The variable can not take this value because it is not integer value or it is 0 input!"
wait 3000
endif
cls
loop
rem End of our main loop
end
else if you still want to change part of code which your program is operating with, while is running i can`t help you because i am new to DarkBasic and still lack of knowledge to do it, if it`s possible.
Where is a will, there is a way.