General information
Category:
Forms & Form designer
>>>>Is there a way (isn't there always?) to assign a variable or object value to a form caption? Every way I tried always uses the expression literally.
>>>
>>>Not at design time, since the caption is evaluated just once. Do it with cod ein hte form's init method.
>>
>>Actually provided the object or the variable is defined before the form is run (and in scope)you can do that
>>
>>e.g. create a new form
>> set the form caption property to =pcSomeValiable
>>pcSomeValue="Caption to use"
>>and run the form
>>
>
>Yes but we wouldn't want to give the impression that the form.caption would be "bound" to this property... it will still be evaluated only once. KNowing this, what's he point in assigning it in the property sheet and worrying about instanciating order?
I didn't say this is the prefered method (or even a good method) to do that
but I just noted its doable :)
Arnon
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only