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