Hey Guys,
I already have a solution to my problem but I thought I would post it for other newbies / posterity.
Symptoms: The base filter on my form mysteriously disappeared. When I tried to update the base filter (via the form's properties box>Filter/Order tab) the filter would not stick. Saving and closing the form would yield an empty Filter expression box. On Arrive code on at lease one of my embedded browses was not firing.
Cause: one of my embedded browses was named exactly the same as the Form
Solution: change the name of the browse!
Narrative:
My form was based on a set and I had an embedded browse based on a child of the set. For whatever reason I had named the browse exactly the same as the form. I am not sure when I changed the name during my development process (I recall changing it a couple of times). The symptoms didn't jump out right away. As far as I can recall, the form worked perfectly. When the form was finished I show the user the new form and it worked just fine... except for a strange warning that popped up. I looked into the warning and re-ordering my tab order fixed it. hmm... that is strange I KNOW I defined the tab order on this form. Perhaps I forgot to save the form after defining the tab order. Next my base filter seemed to not work. Hmm... the Filter Expression box is empty, and nothing I place in it will stick! Not even an expression of: .t. Poking around the rest of my form I noticed one of my browse's On Arrive was not firing.
Looking back I did see other strangeness before I realized something was wrong. The tab order seemed to randomly change a couple of times, but I just chalked it up to a side effect of adding/removing objects on the form. I also saw event code disappearing from one of my browses but eventually that stopped happening. I cannot confirm these were linked to the browse having the same name as the form but I have a feeling they probably were related.
Lesson learned: Like variables, name your objects uniquely.
EDIT:
FWIW I think I recall now when the symptoms appeared in full force. It was after I removed an underscore from my form's name. I had already placed and named the browses on my form. When I changed the form's name I inadvertently made it the same as one of the browses... DOH!
I already have a solution to my problem but I thought I would post it for other newbies / posterity.
Symptoms: The base filter on my form mysteriously disappeared. When I tried to update the base filter (via the form's properties box>Filter/Order tab) the filter would not stick. Saving and closing the form would yield an empty Filter expression box. On Arrive code on at lease one of my embedded browses was not firing.
Cause: one of my embedded browses was named exactly the same as the Form
Solution: change the name of the browse!
Narrative:
My form was based on a set and I had an embedded browse based on a child of the set. For whatever reason I had named the browse exactly the same as the form. I am not sure when I changed the name during my development process (I recall changing it a couple of times). The symptoms didn't jump out right away. As far as I can recall, the form worked perfectly. When the form was finished I show the user the new form and it worked just fine... except for a strange warning that popped up. I looked into the warning and re-ordering my tab order fixed it. hmm... that is strange I KNOW I defined the tab order on this form. Perhaps I forgot to save the form after defining the tab order. Next my base filter seemed to not work. Hmm... the Filter Expression box is empty, and nothing I place in it will stick! Not even an expression of: .t. Poking around the rest of my form I noticed one of my browse's On Arrive was not firing.
Looking back I did see other strangeness before I realized something was wrong. The tab order seemed to randomly change a couple of times, but I just chalked it up to a side effect of adding/removing objects on the form. I also saw event code disappearing from one of my browses but eventually that stopped happening. I cannot confirm these were linked to the browse having the same name as the form but I have a feeling they probably were related.
Lesson learned: Like variables, name your objects uniquely.
EDIT:
FWIW I think I recall now when the symptoms appeared in full force. It was after I removed an underscore from my form's name. I had already placed and named the browses on my form. When I changed the form's name I inadvertently made it the same as one of the browses... DOH!
Comment