Message text written by "Simon Parfitt"
>I am trying to take the output of one list box and use it as a Enum
default
values for another box. But unless you convert the Enum to text the whole
list is input to new box. Two examples are shown. The enum values need to
be
cleared from the sec list before you run the functions. simon<
Well, that is interesting Simon, but not that odd. As you know, VEE has
lots of different 'containers' as intelligent ways of passing data around -
and here you have passed on an Enum which has an ordinal number of that
selected, hence your 'target' list shows the whole list ( the Enum ) with
the correct value selected ( the ordinal value ). Pretty darned neat, if
you ask me.
To do what you want, try putting the Enum through a formula
asText(EnumValue).
Cheers,
Mike Watts
_______________________________________________________________________
Michael J. Watts Consultant PO Box 92
Exeter
e-mail: MikeJWatts@CompuServe.Com Devon
tel: 07714 339 729 EX4 2YY
_______________________________________________________________________
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
>I am trying to take the output of one list box and use it as a Enum
default
values for another box. But unless you convert the Enum to text the whole
list is input to new box. Two examples are shown. The enum values need to
be
cleared from the sec list before you run the functions. simon<
Well, that is interesting Simon, but not that odd. As you know, VEE has
lots of different 'containers' as intelligent ways of passing data around -
and here you have passed on an Enum which has an ordinal number of that
selected, hence your 'target' list shows the whole list ( the Enum ) with
the correct value selected ( the ordinal value ). Pretty darned neat, if
you ask me.
To do what you want, try putting the Enum through a formula
asText(EnumValue).
Cheers,
Mike Watts
_______________________________________________________________________
Michael J. Watts Consultant PO Box 92
Exeter
e-mail: MikeJWatts@CompuServe.Com Devon
tel: 07714 339 729 EX4 2YY
_______________________________________________________________________
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> asText(EnumValue).
Looks like you explained it very neatly!
A traditional Enum is more of a compiler thing - it assigns a name to a
value. In most languages you can also define a user type as a particular
Enum so that the compiler can do type checking on passed values.
A VEE Enum OTOH is (as you say) more of a {key, value} pair container. IMO
it *is* odd that the DefaultValue control input needs a key rather than a
value.
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".