General information
Category:
Forms & Form designer
Title:
Combo added to grid - fatal error
Environment versions
Network:
Windows 2008 Server
Hello. I have a VFP9 form with a grid. Two of the 3 grid cells are configured in the form INIT method as dropdowns - that for column2 follows:
loOc = THISFORM.pf.ecol.habitatlist.COLUMNS(2)
IF PEMSTATUS(loOc,"text1",5) THEN && If not present then already done
loOc.REMOVEOBJECT("text1")
loOc.ADDOBJECT("combo1","Combobox")
loOc.combo1.VISIBLE = .T.
loOc.combo1.FONTSIZE = 8
loOc.combo1.HEIGHT = 20
loOc.combo1.ROWSOURCETYPE = 2
loOc.combo1.ROWSOURCE = "CUSTLOOK.VALUE"
loOc.combo1.STYLE = 2
loOc.combo1.BORDERSTYLE = 0
ENDIF
where CUSTLOOK.VALUE is in a file filtered to a set of values. The filter in that lookup file is set on an afterrowcolchange in the grid.
Every so often, VFP crashes and hangs with a low level windows error - and I can't pin it down.
Wondering if I'm doing this wrong?
Many thanks, Denis
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