on 09-30-2008 6:05 AM
Hi,
I have a sentence in my dictionary as "India & America are my countries".Now i want to keep radio button to this and display by splitting the string as
India & America
are my
Countries
in the design time.
So can anyone please tell me how to break a sentence and how to use "&" symbol in the dictonary
Regards
Padma N
Hi Padma,
I could not understand what your actual requirement is but i could help you regarding spliting the text. You split a text at a specified delimiter say " "(blank space) or any thing by using split method. Below the code for that
String text = "India&America aremy countries"
String[] words=text.split(" ");
wdContext.currentContextElement().setA(words[0]);
wdContext.currentContextElement().setB(words[1]);
wdContext.currentContextElement().setC(words[2]);
then you will get
India&America
aremy
countries
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.