General information
Category:
Forms & Form designer
>>>How can I release one form from another? (I am using VFP 5.0a)
>>>I tried myform.RELEASE but it doesn't work. I receive the error message "objetc myform is not found"
>>>
>>
>>Have you tried the following :
>> Activate Window MyFormName
>> _SCREEN.ActiveForm.Release()
>>
>>
>>
>>>Another question.
>>>
>>>I have a combobox with two columns (table1.name,table1.codenr) inside one grid with 5 columns. The properties for the combo are:
>>>columnCount=2, BoundColumn=2, ControlSource=table2.codenr,
>>>RowSourceType = 6-Fields and RowSource=table1.name,codenr
>>>
>>>When the grid cell where the combo is containned has the focus. It is displayed the table1.name inside the combo (this is the correct behavior). But when the focus is another column, it is displayed the table1.number (grid.Sparse=.t.) and I want to be displayed table1.name.
>>>
>>>What I am doing wrong?
>>
>>You must set the sparse and the bound property to .f. and the controlsource of the column to name and the controlsource of the combobox to the codenr.
>
>
>The problem with combo is ok. But, I can't use Sparse=.t.?? I would like to show the combo only to the active cell.
I think if you leave the sparse, it would work anyway but you must set the bound property to false.
>
>About the release, _SCreen.activeform.Release(), release only the form that has the focus. Is there away to use setall with _screen.activeform??
If you do Activate Window OtherWindow and set _SCREEN.ActiveForm.Release(). The focus will change to the other window.
You can do also :
oMyForm= CREATEOBJECT('MyForm')
oMyForm.Show()
oMyForm.Release()
Previous
Next
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