I'm trying to get an Integer value from the DropDownListv2 and I can't seem to get it.
Using val as follows: dim spot_convert as integer ... val(spot_convert,GetBytes(drop_down_curSelText,true)) OR val(spot_convert,str(drop_down_curSelText))
I've tried using the val function, but I get an error "Val: Illegal value given by string". Both the methods I showed above give me the error. If I look at the value of curSelText in the debugger it is given as 2,6,1 (for example). So it's getting the proper value, but still getting the error when using val.
I'd appreciate any help.
|