Fill form via Script

Fill form via Script

Ok,

Lets say I have a stateless form called frmTest.
This form has one integer field and one string field called intEventID & strLabel

Is it possible to write a function that would populate this form on the intEventID On User Update? (I know there are ways to do it within the form itself, but I'm wondering about the syntax of writing a function).

Here is what I'm thinking for the function:

  1. void basFillForm(int intEventID)
    {
        varData  =  frmTimeSheet  [intEventID == input.intEventID];

  2.      ***Populate the strLabel control in the frmTest form from within this function***
    }
The problem I am having seems to be setting the form & the control.  I was thinking of something like frmTest.strLabel = "Blah, blah, blah"

But each time I do, it gives me an error.

Any help?


Leo Saumure