PDA

View Full Version : VB6 Question.


angst
05-31-2006, 05:49 PM
Hello,

this is a VB6 question, I'm made a connection to mysql, and I can query data and display it via msgbox, but how can I write the returned query response back to the form window?

like in asp I would use response.write,
and in php Print, or echo. but I can't seem to find out what the command is for vb6,

any help would be great!

thanks in advance for your time,
-Ken

miranda
06-02-2006, 03:14 PM
if you want to write directly to the form use the Print method.

Print "Hello World" will print directly on the form itself.


If you want to use a control then you can assign a value to the controls appropriate property

for a label control it is the caption property
label1.caption = "Hello World"

for a textbox control it is the text property
textbox1.text = "Hello World"