Ok, I think I understand now. Well, if all you need to know is how to get
custom items inside a bounded listbox, here's how. The ListBox content (the
text values with their associated id) is stored in the "Values" property of
the control. The data is stored as an array of value pairs also stored as an
array. You can intercept the listbox in its "Before Show" event and alter
(or add) the data the way you want it. For a simple example:
1. Create a form and add a ListBox.
2. Select the ListBox and add code to its "Before Show" event.
3. Add this code:
$my_values=array(); // Initialize the master array
for($i=1;$i<=10;$i++) // Simple counter from 1 to 10
$my_values[]=array("ID$i","This is item #$i"); // Create the value-pair
array
$NewRecord1->ListBox1->Values=$my_values; // Assign the newly created array
to the listbox
4. Switch to Live View
5. Notice that the listbox now contains "This is item #x" **
6. Examine the "source" (right click, select view source) and check the IDs
are now "IDx" **
(** Where x is a number betwen 1 and 10)
Hope you can get it from here.
Regards,
Sixto
"Aleister" <
Aleister@forum.codecharge> wrote in message
news:540a7e1cab87f9@news.codecharge.com...
> Hello Sixto,
>
> My description sucks, I know, but it isn't about dependent listboxes, I
need
> the Values in one listbox, not two or more.
>
> The thing is I don't know how can I get each Value of the listbox before
it
> shows and change it to something more readable, something I calculate by
hand.
>
> e.g.: Real Data of the listbox = ID
>
> Record -> Before adding ID value to listbox
>
> GetValue of ID -> custom code calculations -> SetValue Results
>
> repeat for every listbox record
>
>
> Thanks for your reply,
> Aleister
>
>
> ---------------------------------------
> Sent from YesSoftware forum
>
http://forums.codecharge.com/
>