Skip to Content
author's profile photo Former Member
Former Member

IsAnyHebrew in powerbuilder 12.5


I'm trying to use the func above on input that i getting from my user.

but even when he don't use any hebrew char the function still returning true !!

any suggestion ?

thank you,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2016 at 01:38 PM

    Hi Eyal;

    Yes, I get the same improper result in PB 12.6. It looks to me that the method has a bug in it. If there are any spaces in the textual data .. you always get a TRUE return code no matter what characters the user enters.

    I found a workaround this morning that seemed to work for me. By replacing all the SPACES in the input text and then running this through the IsAnyHebrew () method, it seems to work properly, as follows:

    Here is the code segment I used ...

    Int li_pos

    String ls_data

    ls_data = Data

    li_pos = POS (ls_data, " ")

    DO while li_Pos > 0

    ls_data = Replace (ls_Data, li_pos, 1, "")

    li_pos = POS (ls_data, " ")


    IF isanyhebrew (ls_data) = TRUE THEN

    MessageBox ("Hebrew", "Found!")


    MessageBox ("Hebrew", "NOT Found!")

    END IF


    Regards ... Chris

    pastedImage_0.png (10.3 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.