Global Declarations

Head into brick wall time - please help.

I have a basic form in which I have specified within the Globals Declarations:-

dim apDate as string

The idea is then I can set this variable on a postOpen event to collect the current value of a field, then when I save (through an action button), I can compare this value to see if it has updated. All pretty standard stuff.

The problem is however that when I debug by the time I reach the postOpen event the variable apDate is no longer listed in the Globals section.

Am I missing something here?

Subject: Global Declarations

It looks like it’s one of notes quirks, as although it doesn’t appear under the global section, if it is not referred to in the PostOpen event it is still there.

I declared a global variable, set it in Postopen and it was listed under globals in debugger. I removed all references to it in PostOpen and it no longer appeared under globals. I then set it in an action button and it appeared under the global section.

Subject: Global Declarations

Funny how this works sometimes. I posted an almost exact proble, but mine was giving me an error “canot find external name: ” where the varname was an object I set in the postopen.

I found a post:

www-1.ibm.com/support/docview.wss?uid=swg21090897

that explained that I had a “Use ” call in the options of the action. I moved it to the Options section of the subform and it appears to have fixed the problem. Still testing though.

  • Matt