Welcome! Log In Create A New Profile

Advanced

[WD19] How to handle Parenthesis symbol in multilingual?

Posted by Mujahid 
[WD19] How to handle Parenthesis symbol in multilingual?
October 27, 2018 07:16AM
Hi All,

My software run on multilingual.

But in Arabic language the symbol "(" + TheWords + ")" is not place properly.

For example :

STC_Detail = COMBO_CustomerCode + " : " + EDT_Customer + " (" + EDT_Mobile + ")" + CR + "OK"

The result will display
(C001 : Sabyan (0102221234
OK


I want to look normal result like this
C001 : Sabyan (0102221234)
OK


The problem only happens if Language in Arabic. Maybe because the words write from right to left so there are some rules to handle.

I have try many ways but still not success.

Please advise.

Thanks a lot.

Regards,
Mujahid
Re: [WD19] How to handle Parenthesis symbol in multilingual?
October 27, 2018 09:14AM
Hi Mujahid,

have you tried assigning your "("+..+")" to a unicode string first _AND_ then assigning this string to your STC_Detail ?
You could also try StringBuild ...

Regards
Steven Sitas



Edited 1 time(s). Last edit at 10/27/2018 09:15AM by StevenSitas.
Re: [WD19] How to handle Parenthesis symbol in multilingual?
October 27, 2018 09:52AM
HI Mujahid,

did u try the stringbuild function as Steven mentioned?

STC_Detail = StringBuild("%1 : %2 (%3)", COMBO_CustomerCode,EDT_Customer,EDT_Mobile) + CR + "OK"

Cheers,

Sascha
Re: [WD19] How to handle Parenthesis symbol in multilingual?
October 27, 2018 03:53PM
No need for the additions at the end, Stringbuild accept all 'String' functions.

STC_Detail = StringBuild("%1 : %2 (%3)%4OK", COMBO_CustomerCode,EDT_Customer,EDT_Mobile,CR)
Re: [WD19] How to handle Parenthesis symbol in multilingual?
October 28, 2018 02:13AM
Hi All,

Thanks for the idea.

My software default setting is UNICODE. So the default character of string is unicode.

I have try on stringbuild but same wrong result.

Then im doing like this :
STC_Detail = StringBuild("(%3) %1 : %2 %4OK",COMBO_CustomerCode,EDT_Customer,EDT_Mobile,CR)

and the result is success
C001 : Sabyan (0102221234)
OK


BUT, now i want the result like this
(0102221234) Sabyan : C001
OK


This is still fail. I have test it more than 20 hours.

One of my test, i found that to get the result that i need is using this kind of formula
STC_Detail = StringBuild("%3s) %2 : %1) %4OK",COMBO_CustomerCode,EDT_Customer,EDT_Mobile,CR)

And the result like this
(0102221234s) Sabyan : C001
OK


You can look i put "s" before ")", because if before symbol ")" is not alphabet then the result still error.

Too many constraint to handle this.

Maybe this is a bug.

Or someone maybe have an idea.

Thanks a lot.

Regards,
Mujahid
HI Mujahid,

did u try to build the string with different symbols e.g * instead of ( and then do a replace ?

regards, Heinz
Re: [WD19] How to handle Parenthesis symbol in multilingual?
October 28, 2018 07:29PM
Hi Mujahid,

maybe the use of Charact(ascii code) function will do the job.

Regards

Vassilis
Re: [WD19] How to handle Parenthesis symbol in multilingual?
October 28, 2018 10:15PM
Hi:

In your first example you used " (" with a leading space, but ")" with no trailing space. Can you try using ") "?

Regards
Mike
Re: [WD19] How to handle Parenthesis symbol in multilingual?
October 29, 2018 02:39PM
Hi All,

Thanks a lot for your idea and help. grinning smileythumbs up

So it is success to handle using "&" symbol.

The project setting for Arabic language is From Right To Left.

For English or other standard language im using this coding:
STC_Detail = StringBuild("%1 : %2 " + "(%3) %4OK",COMBO_CustomerCode,EDT_Customer,EDT_Mobile,CR)

For Arabic language the coding is :
STC_Details = StringBuild("& %2 : %1" + "&(%3) %4OK",COMBO_CustomerCode,EDT_Customer,EDT_Mobile,CR)

So this handle "()" and space properly. And it's also handle mix language and symbol in single line.
Because not all words is in Arabic.

Thanks again. grinning smiley

Regards,
Mujahid
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: