>It is a public variable. I could pass it into all the forms but how would I get it into reports? (I use it there to in the headers.) So, I just figured it would be eaiser on me to keep it public and let all my forms reference it too.
"Report" is a command. It means that anything accesible by the routine executing the 'report' is also accesible by the report. ie:
If you have a method with code :
local lc1, ld1, luSomething, loObj
lc1 = thisform.text1.value
ld1 = this.parent.txtDate.Value
luSomething = thisform.SomeProperty
loObj = createobject('custom')
loObj.Addproperty('c1','CharProp')
loObj.Addproperty('d1',date())
loObj.Addproperty('n1',seconds())
report form myReport preview
Any report field could also use these as expressions:
lc1, thisform.text1.value, ld1, this.parent.txtDate.Value, luSomething , thisform.SomeProperty, loObj.c1, loObj.d1,loObj.n1 etc
Cetin