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 13:53:28
 
 
To
17/10/2001 08:23:53
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00569452
Message ID:
00570412
Views:
20
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
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform