$[officename] Basic code is based on subroutines and functions that are specified between <emph>sub...endsub</emph> and <emph>function...endfunction</emph> sections. Each Sub or Function can call other Subs and Functions. If you take care to write generic code for a Sub or Function, you can probably re-use it in other programs. See also <link href="text/sbasic/shared/01020300.xhp">Procedures and Functions</link>.
$[officename] Basic code is based on subroutines and functions that are specified between <emph>sub...endsub</emph> and <emph>function...endfunction</emph> sections. Each Sub or Function can call other Subs and Functions. If you take care to write generic code for a Sub or Function, you can probably re-use it in other programs. See also <link href="text/sbasic/shared/01020300.xhp">Procedures and Functions</link>.