Dropdown item has value and caption properties but the documentation example only has
#ddChartType.Items.Add( 'Some Item' )
Is it possible to set the caption property in the same statement?
VLWEb Dropdown Items (RESOLVED)
-
JamesDuignan
- Posts: 85
- Joined: Thu Nov 26, 2015 1:43 pm
Re: VLWEb Dropdown Items
Hi Jim,
Yes it is,
or
will set the value and caption in a single statement.
Regards,
James
Yes it is,
Code: Select all
#ddChartType.Items.Add( 'Some Item' 'This is the caption for some item' )Code: Select all
#ddChartType.Items.Add Value( 'Some Item' ) Caption('This is the caption for some item' )
Regards,
James
Re: VLWEb Dropdown Items (RESOLVED)
Further. I've added a bunch of items and I want the first to be selected when the drop down is first displayed.
I've tried
#ddChartType.Items.Add Value('MSColumn2D') Caption('2D Bar')
#ddChartType.Items.Add Value('MSColumn3D') Caption('3D Bar')
#ddChartType.Value := 'MSColumn2D'
but the dropdown comes up blank.
How do I do this?
I've tried
#ddChartType.Items.Add Value('MSColumn2D') Caption('2D Bar')
#ddChartType.Items.Add Value('MSColumn3D') Caption('3D Bar')
#ddChartType.Value := 'MSColumn2D'
but the dropdown comes up blank.
How do I do this?
Re: VLWEb Dropdown Items (RESOLVED)
Cancel that last one - I checked it in rather than compile!