I prefer this code here.
underline_text(5, 5, "Hello World!")
suspend for key
end
function underline_text(x as integer, y as integer, text$ as string)
text x, y, text$
line x,y+text height(text$),x+text width(text$),y+text height(text$)
endfunction
function underline_centertext(x as integer, y as integer, text$ as string)
x=x-text width(text$)/2
text x, y, text$
line x,y+text height(text$),x+text width(text$),y+text height(text$)
endfunction
Cheers,
-db
Albert Einstein believed that imagination is more important than knowledge.