Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another 6.0 bug still present in 7.0
Message
From
18/10/2001 15:03:22
 
 
To
18/10/2001 13:53:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00569452
Message ID:
00570460
Views:
20
I had this issue resolved long ago, I just thought I'd bring it up again
in case it didn't get through the first time. Thanks for taking the time
to provide the workaround.

>Here is a workaround that works for me. It calls the InteractiveChange twice the first time through. I couldn't find any record where this had been reported before, so I have passed along a bug report on this.
>
>I hope this helps!
>
>
>CLEAR
>PUBLIC oform
>oForm = CREATEOBJECT("Form")
>oForm.Autocenter = .T.
>oForm.Addobject('combo','_combobox')
>oForm.combo.Visible = .T.
>oForm.Show()
>
>DEFINE CLASS _combobox AS combobox
>	lFirstIChange = .T.
>        Inputmask = "X-X-X"
>        Format = "R"
>	PROCEDURE keypress(nKeyCode, nShiftAltCtrl)
>		IF this.lFirstIChange= .T.
>			NODEFAULT
>			DODEFAULT(nKeyCode, nShiftAltCtrl)
>			this.lFirstIChange = .F.
>			this.InteractiveChange
>		ENDIF
>	ENDPROC
>        PROCEDURE interactivechange
>       		IF this.lFirstIChange = .T.
>       			RETURN
>       		ENDIF
>		ACTIVATE SCREEN
>       	        ? PROGRAM()
>                ?'THIS.DisplayValue returns: '+THIS.DisplayValue
>                ?'THIS.Text returns: '+THIS.Text
>       ENDPROC
>ENDDEFINE
>
Previous
Reply
Map
View

Click here to load this message in the networking platform