I select an item from a combo box based on data rather than index (basic requirement for me).
The issue I have is now the contents of combo box has non-English or Wide Char characters.
The API RxComboBoxSetSelectedText will not work as it does not support non-English/Wide Char characters.
I use only Ranorex Core in C/C++ environment. I can not switch to .Net.
Is there any workaround?
-Venkat
Select non-english data in a combobox
Yes. I have to select an item from a COMBO box, which can be either Korean, Japanese, Thai, Spanish or any other world language.
My current code:
[i]hComboBox = RxFormFindChildControlId(Parent, ControlID);
if( hComboBox == GNTF_NULL)
{
return ERR_NotFound;
}
if(-1 == RxComboBoxSetSelectedText(hComboBox, szItemName))
{
return ERR_NotFound;
}[/i]
RxComboBoxSetSelectedText however only takes char * as argument.
-Venkat.
My current code:
[i]hComboBox = RxFormFindChildControlId(Parent, ControlID);
if( hComboBox == GNTF_NULL)
{
return ERR_NotFound;
}
if(-1 == RxComboBoxSetSelectedText(hComboBox, szItemName))
{
return ERR_NotFound;
}[/i]
RxComboBoxSetSelectedText however only takes char * as argument.
-Venkat.