Kbase 17579: How to Add Data to the PSCOMBO VBX control
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to Add Data to the PSCOMBO VBX control
DRAFT COPY - Currently under review and edit.
INTRODUCTION:
=============
This knowledgebase entry provides a sample code to add data to the
PSCOMBO VBX control available in V8.
This sample code assumes that you are using the PSCOMBO VBX control in
the UIB, and you want to get the names of the Sales Representative
table into the combo box.
DEFINE VARIABLE wlog AS LOGICAL NO-UNDO.
wlog = hc_PSComboBox:CLEAR().
FOR EACH Salesrep NO-LOCK:
wlog = hc_PSComboBox:INSERT(Salesrep.Rep-Name).
END.
This code can appear in the Main Block, into an internal
procedure to initialize the control or into a local-initialize
procedure if the window is a SmartObject.
REFERENCES TO WRITTEN DOCUMENTATION:
====================================
- Online PROGRESS VBX Controls help file: VBXENG.HLP.
Progress Software Technical Support Note # 17579