Rajeev,
ListBoxes doesn't have Calling clause so you need user activity (to push
button, double click or so) to move selected items from one listbox to the
other.
Try compiling following code.
Regards,
Anssi
'*********************************
Declare Sub Main
Declare Sub Main_chk
Global sValue(10), sNew() As String
Sub Main
sValue(1) = "one"
sValue(2) = "two"
sValue(3) = "three"
sValue(4) = "four"
sValue(5) = "five"
sValue(6) = "six"
sValue(7) = "seven"
sValue(8) = "eight"
sValue(9) = "nine"
sValue(10) = "ten"
Dialog
Title " "
Control MultilistBox ID 20 Title From Variable sValue
Control MultiListBox ID 30 Title From Variable sNew
Control Button ID 10 Title "Move" Calling Main_chk Width 80
End Sub
Sub Main_chk
Dim i, j As Integer
Do Case TriggerControl()
Case 10
ReDim sNew(0)
For i = 1 To UBound(sValue)
j = ReadControlValue(20)
If j <> 0 Then
ReDim sNew(i)
sNew(i) = sValue(j)
Else
Exit For
End If
Next
Alter Control 30 Title From Variable sNew
End Case
End Sub
'***********************************
-----Original Message-----
From: Rajeev Saraf <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 11. elokuuta 1999 20:05
Subject: MI MB: can one control be made dependent on the output of another
control in db
>Hi guys,
>say we have two multi-list controls in a dialog box. is it possible to
>populate the second multi-list based on the selection from the first
>multi-list - sort of make second multi-list dependent on the output of
first
>multi-list control?
>
>Any suggestion?
>--
>Rajeev saraf
>lepton software
>1-a/2 jia sarai
>near iit, hauz khas
>new delhi 16 INDIA
>
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]