I'm having trouble figuring out how to, in REALbasic, have it display the current date and time in a static text box. Do any of you have some miracle code that can save me? Thanks!

(PS mods: If there is a better place this thread can be, feel free to move it).

Dim d as new date

Statictext1.text = d.longdate +" "+d.longtime

Check out the date class in the language reference.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.