Rajeev, Peter, others

Sorry about my misleading information about Calling clause.

Peter is right, I didn't bother to check and mixed up w/ EditText.
Here is the code once again.

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 Calling Main_chk
Control MultiListBox ID 30  Title From Variable sNew


End Sub
Sub Main_chk
Dim i, j As Integer

Do Case TriggerControl()
Case 20
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: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 12. elokuuta 1999 17:02
Subject: Re: MI MB: can one control be made dependent on the output of
another control in db


>
>
>
>Hi Rajeev,
>
>Listboxes do have a Calling clause that activates a handler, when a change
>is mad to the
>
>Here is the syntax for this control.
>
>     Control  { ListBox  |  MultiListBox }
>          [ Position  x , y ]   [ Width  w ]   [ Height  h ]
>          [ ID  control_ID ]
>          [ Calling  handler ]
>          [ Title  { str_expr  |  From Variable  str_array_var }  ]
>          [ Value  i_selected ]
>          [ Into  i_variable ]
>          [ Disable  ]   [ Hide ]
>
>Best regards,
>
>Peter
>
>Peter Moller        [EMAIL PROTECTED]
>GIS-Developer       Direct: +45 6313 5008
>Kampsax Geoplan     Voice: +45 6313 5013
>Rugaardsvej 55      Faximile: +45 6313 5090
>DK 5000 Odense C    www.mapinfo.dk
>MapInfo Authorized Partner
>
>
>*********************************************************************
>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.
>
>

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to