Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent Object Will Not Allow This Property Setting - Gri
Message
De
18/07/2006 13:21:16
 
 
À
18/07/2006 13:05:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01137255
Message ID:
01137312
Vues:
17
I just checked the message you posted and luckily I shouldn't reach 255 chars, but you never know. Amazing timing. Thanks!


>You can't set ControlSource of an object in column. You must uyse Column ControlSorce instead. Also Check Message #1137066 just in case you method returns more that 255 chars.
>
>
>>Grid sits on a page on a pageframe. Clicking on the page loads the grid. Everything works except that I want to specify a different control and controlsource for the 2nd column:
>>
>>*Page Activate:
>>   loObject = THIS.Grid1.Column2
>>   THIS.Grid1.RECORDSOURCE=""
>>   THIS.Grid1.RECORDSOURCE="Tracy"
>>   IF !PEMSTATUS(loObject,'Edit1',5)
>>      WITH THIS.Grid1.Column2
>>        .REMOVEOBJECT([Text1])
>>        .ADDOBJECT([Edit1],[EditBox])
>>        .CURRENTCONTROL = [Edit1]
>>        .Edit1.CONTROLSOURCE = "(thisform.returntheaddress())"
>>        .Edit1.VISIBLE = .T.
>>      ENDWITH
>>   ENDIF
>>*Form returntheaddress method (field names are correct and all are character):
>>   RETURN (ALLTRIM(number) + IIF(!EMPTY(apt_room),"-" + TRIM(apt_room),' '))
>>*This fails as well:
>>   RETURN "Test Value"
>>
>>When the pagetab is clicked, the following error appears:
>>Parent object will not allow this property setting for form1.pageframe1.page1.grid1.column2.controlsource.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform