Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another 6.0 bug still present in 7.0
Message
From
17/10/2001 08:23:53
 
 
To
17/10/2001 07:44:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00569452
Message ID:
00569470
Views:
23
This.text is not always an option. Try this:
oForm = CREATEOBJECT("Form")
oForm.Autocenter = .T.
oForm.Addobject('combo','_combobox')
oForm.combo.Visible = .T.

oForm.Show()
READ EVENTS

DEFINE CLASS _combobox AS combobox
       Inputmask = "X-X-X"
       Format = "R" 
       PROCEDURE InteractiveChange
                 ACTIVATE SCREEN
                 ?'InteractiveChange fires'
                 ?'THIS.DisplayValue returns: '
                 ??THIS.DisplayValue
                 ?'THIS.Text returns: '
                 ??THIS.Text
       ENDPROC
ENDDEFINE
>>See this message.
>
>Tonis,
>Right. Simple workarounds work :
>
oForm = CREATEOBJECT("Form")
>oForm.Autocenter = .T.
>oForm.Addobject('combo','_combobox')
>oForm.combo.Visible = .T.
>
>oForm.Show()
>Read EVENTS
>
>Define CLASS _combobox AS combobox
>  Procedure InterActiveChange
>  Activate SCREEN
>*!*	                 lnStart=this.selstart
>*!*	                 this.displayvalue=this.text
>*!*	                 this.selstart=lnStart
>  ?'InterActiveChange fires'
>  ?'THIS.Displayvalue returns: ',THIS.Displayvalue
>  ?'THIS.Text returns: ',THIS.Text
>
>Endproc
>Enddefine
Cetin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform