PDA

View Full Version : combo box problem


query007
04-26-2005, 06:29 AM
hello
is it possible to concatenate values in a combo box
together
for instance i want to geta value for date of birth
there are three combo boxes day month and year
and i want to get the value DOB from all all three values

can someone help me please?
Thankyou

firdosh
04-26-2005, 09:23 AM
Can you be more specefic . You want to get all those 3 values and form a string value ??

firdosh

SrinivasSM
04-26-2005, 10:00 AM
May be the bellow code is what you want:


var temp=""+combo1.value+combo2.value+combo3.value+""


The above statement will convert the values of all the 3 combo boxes values to a single concatenated string.

query007
04-27-2005, 01:28 AM
Hi
This is what i have so far
var DOB = ""Day_cb.value+Month_cb.value+Year_cb.value+""

i've tried putting in my xml code and then before my xml code....
intialising it in the first frame of my flash file but it comes up with this error

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 16: Syntax error.
var DOB = ""Day_cb.value+Month_cb.value+Year_cb.value+""