I solved ur code. All u need to do is take off the $ at the end of your variables.
Can anybody wrok out why this code doesnt work
type dialog
dialog as string
xpos as integer
ypos as integer
r as byte
g as byte
b as byte
font as string
endtype
writing as dialog
writing.dialog = "hello there, pleased to see you"
writing.xpos = 300
writing.ypos = 400
writing.r = 128
writing.b = 128
writing.font ="tahoma"
display_dialog(writing)
wait key
function display_dialog(dialog_var as dialog)
ink rgb(dialog_var.r,dialog_var.g,dialog_var.b),0
if dialog_var.font <> ""
set text font dialog_var.font
endif
text dialog_var.xpos,dialog_var.ypos,dialog_var.dialog
ink 0,0
set text font "courier"
endfunction
If you forget one little thing i shall have you shaved sterilised and destroyed: Jeffrey Goines