VPME 7.0a, VPMP 7.0a, VPMS 7.0a FIX: Error with combobox

The place where ProMatrix posts coding tips and fixes. Read only.

VPME 7.0a, VPMP 7.0a, VPMS 7.0a FIX: Error with combobox

Postby JessicaLawson » Sun Jun 13, 2010 3:24 pm

Subject: VPME 7.0a, VPMP 7.0a, VPMS 7.0a FIX: Error occurs when combobox list is dropped down

Applies to: VPM Enterprise 7.0a, VPM Professional 7.0a, VPM Standard 7.0a

Symptoms: When a combobox is in a grid and is used to display a description
from a lookup table/view, an error occurs when the list is dropped down.

Resolution: To fix this problem, change the code in the DropDown event of
the Combobox_ class in the VPMCtrls class library to the following.

IF This.lPicklist
IF ALLTRIM(UPPER(This.Parent.BaseClass)) == 'COLUMN' AND ;
This.Parent.Bound
This.Requery()
ELSE
LOCAL slcControlSource
slcControlSource = This.ControlSource
This.ControlSource = ''
This.Requery()
This.ControlSource = slcControlSource
ENDIF
ENDIF
JessicaLawson
 
Posts: 79
Joined: Sun Jun 13, 2010 1:23 pm

Return to ProMatrix Library

Who is online

Users browsing this forum: No registered users and 3 guests

cron