Hi Ben,
I'm sorry to bring these bad news to you, but as far as I know it doesn't
work !
You could use a Type containing 6 arrays, like this:
Type T_HEXA_ARRAY
arrStrings1() As String
arrStrings2() As String
arrStrings3() As String
arrStrings4() As String
arrStrings5() As String
arrStrings6() As String
End Type
But MapInfo/MapBasic cann not handle type arrays in dialogs. This is of
course
a drawback, but one has to learn to live with these little things in life.
If you come up with a solution that would allow this, please let me know !
Peter
------------------------------------------------------------------------------------------------
Peter Horsb�ll M�ller, GIS Udviklingskonsulent / GIS-Developer
Kampsax A/S - GIS Software & Solutions
Rugaardsvej 55, 5000 Odense, DK
tel: +45 6313 5013, dir:+45 6313 5008, fax: +45 6313 5090
mailto:[EMAIL PROTECTED]
www.kampsax-gis.dk and www.kampsax.dk
Authorized MapInfo Partner & Distributor in Denmark and Norway.
------------------------------------------------------------------------------------------------
Klik ind p� http://www.kortal.dk og se det hele lidt fra oven!
Check http://www.kortal.dk and have a look at Denmark from above!
----- Videresendt af Peter M�ller/Kampsax - 16-05-2002 21:52 -----
Ben Crane
<crane_ba@yah Til: [EMAIL PROTECTED]
oo.com> cc:
Vedr.: MI-L Alter Control Question
16-05-2002
11:41
Hi List,
A quick question: I have a dialog box with 6
checkbox's, every time a checkbox is clicked on I want
a specific array (I have 6 different arrays) to appear
depending on what checkbox was clicked (I used
triggercontrol for this). BUT, Everything in the alter
control code below works so that there is only 1 set
of code to control ALL six checkboxes. But depending
on which checkbox is activated, I want a different
array to be loaded into a popupmenu. How do I do this
without creating reams of code...I thought I could
use
Alter Control XXX Title From Variable Test(X) where
test contains the array names and X the stripped down
ID number of the checkbox, hence replacing Test(X)
with the correct array...it doesn't work..
Any ideas please? I don't want duplicate code and I
believe this method can work...it's all about
efficiency!
Sub CheckBoxHandler
Dim x as integer
X = TriggerControl()
Do Case X
Case X
If (ReadControlValue(X)) = 1 Then
Alter Control left$(str$(X), 1) Title From Variable
**Variable**
Alter Control left$(str$(X), 1) Show
StreetControl = TRUE
Else Alter Control left$(str$(X), 1) Hide
StreetControl = FALSE
End If
End Case
End Sub
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]