‎2009 Nov 10 1:32 PM
Hello Experts,
I have a Problem with my Flex Application. I want to send data as a String from a Flex Combobox to a Webservice. But the String has before and after the value inverted comma's (").
How can I replace this inverted comma with a blank?
Here the Code how I get the Data from the ComboBox:
comboBox.dataProvider = auswahl;
str = ObjectUtil.toString(cb.selectedLabel.toUpperCase());
Thanks for your answers in advance!!!
‎2009 Nov 11 9:58 AM
to remove the inverted comma from the string use action script replace method.
public function fixstring():void
{
var str:String ;
var str1:String ;
str = "\"test\"" ;
var pattern:RegExp = /\"/gi;
str1 = str.replace(pattern,"");
Alert.show(str1);
}
for more on this read this online help
‎2009 Nov 11 9:58 AM
to remove the inverted comma from the string use action script replace method.
public function fixstring():void
{
var str:String ;
var str1:String ;
str = "\"test\"" ;
var pattern:RegExp = /\"/gi;
str1 = str.replace(pattern,"");
Alert.show(str1);
}
for more on this read this online help
‎2009 Nov 11 11:27 AM