Author Topic: Referencing a form component, outside of an event handler  (Read 2882 times)

cappy2112

  • Community Member
  • Posts: 91
  • Hero Points: 0
Referencing a form component, outside of an event handler
« on: June 28, 2007, 12:36:00 am »


I want to print some text to a label component, outside of an event handler.
(the label doesn't have any defined even handlers anyway.)

However, when I reference the label name, I get a slick stack trace that tells me that label doesn't exist.
The label does exist, but I guess I'm not referencing it correctly;

This is the line I'm using to reference the label outside of an event handler.

lblCurrentFile.p_caption = strip_filename(p_buf_name,"PD")

What is the correct syntax/form that I should be using?

thanks