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.
>At runtime how do you get m.pcCurrentHall value. However you do it do it say in form.init and assign caption (might be a passed parameter).
>m.pcCurrentHall sounded like a public variable to me and I never suggest to use public vars in VFP.
>Cetin
>
>
>>Why do you think it is a bad idea? What do you suggest in replacement?
>>
>>
>>
>>>>So I got VFP 8 (finnaly). When I open some of my forms now I get this error:
>>>>
>>>>"Data type is invalid for this property."
>>>>
>>>>I click "OK" and the form load/runs fine. I figured out that its because I reference a variable in the form caption property. It equals something like, = 'Resident Information - ' + m.pcCurrentHall. Now if I dont have m.pcCurrentHall delclared it gives me an error, and if its declared its fine. It never did this in VFP 7. My questions is, can I get VFP to stop giving me an error everytime I open the form in the form designer?
>>>>
>>>>Cheers,
>>>>Eric
>>>
>>>Eric,
>>>I think having such a caption is not a good idea. Anyway in command window execute :
>>>m.pcCurrentHall = ''
>>>Cetin
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement