Hi All,
Ihave a multi denmension array which have 4 elements and 5 fields.
I want to display and select any of the 4 elements but only on field 2.
How can I achive this ?
Regards,
Gilbert
#include "fivewin.ch"
///////////////
FUNCTION Main()
///////////////
LOCAL oDlg, oCbx
LOCAL aSmall := {}
LOCAL cVar := ""
LOCAL aBig := {;
{ "Element 1, 1", "Element 1, 2", "Element 1, 3", "Element 1, 4", "Element 1, 5" },;
{ "Element 2, 1", "Element 2, 2", "Element 2, 3", "Element 2, 4", "Element 2, 5" },;
{ "Element 3, 1", "Element 3, 2", "Element 3, 3", "Element 3, 4", "Element 3, 5" },;
{ "Element 4, 1", "Element 4, 2", "Element 4, 3", "Element 4, 4", "Element 4, 5" } ;
}
aEval( aBig, { |a| aadd( aSmall, a[ 2 ] ) } )
cVar := aSmall[ 1 ]
DEFINE DIALOG oDlg
@ 10, 10 COMBOBOX oCbx;
VAR cVar;
ITEMS aSmall;
SIZE 60, 150;
PIXEL;
OF oDlg
ACTIVATE DIALOG oDlg
RETURN( NIL )
Return to FiveWin for CA-Clipper
Users browsing this forum: No registered users and 1 guest