How to keep special characters in a dynamic textfield for textual comparison?

The problem is the following:

As I develop primarily for several languages, I have to have dynamic textfields in my buttons that contain three lines (to account for the different text.lengths in different languages).

I then fill the textfields with strings from an array or an xml and use the contents of textfields later in my button class to run a different code based on the contents of textfields.

It works fine as long as I don't use special characters, such as for example '\n '.

var labels: Array = ["\nLABEL1","LABEL\n\n2"];

...

Switch (e.currentTarget.txt.text)

{

labels box [0]:

doSomething();

break;

[1] case labels:

doSomethingElse();

break;

}

...

Watch the good thing in the label of the button (breaks up the text were want it)

but stops working

(htmlText & < br > This is the same thing)

My solution for now is to use spaces to fill,

var labels:Array = ["                   LABEL1","LABEL                                                                        2"];

but it's obviously ugly to set up and require a lot of trial/error to get it right for all languages.

Any ideas how to get around this?

This isn't a good idea to rely on the labels of the buttons to link to the feature at first - we shouldn't mix presentation and business logic. There is more than one dependencies. A better approach would be to separate the presentation logic.

Tags: Adobe Animate

Similar Questions

  • How to insert special characters when I hit e-mail or Facebook?

    How to insert special characters when I hit e-mail or Facebook?

    See also:

  • How to get special characters in the oracle column only

    Hi all

    with spec_tab

    as

    (

    Select ',' col1 of double

    Union

    Select ',' col1 of double

    Union

    Select 'something' double

    )

    Select col1

    of spec_tab

    How to get special characters in the oracle column only

    You mean like this?

    -------------

    WITH spec_tab
         AS (SELECT ',,,,' col1 FROM DUAL
             UNION
             SELECT ',' col1 FROM DUAL
             UNION
             SELECT 'some thing' FROM DUAL)
    SELECT col1
      FROM spec_tab
      where translate('~'||col1,'~0123456789abcdefghijklmnopqrstuvwxyz ','~')<>'~'
    

    Output:

    -----

    COL1

    ,

    ,,,,

    See you soon,.

    Manik.

  • How to enter special characters with the Run statement (@).

    Hello

    Oracle10g (R1)

    NLS_CHARACTERSET = "AL32UTF8.

    When I insert record with special characters like "hastened" with the customer tool insert it works fine, but I run the same INSERT statement execution i.e. statement "SQL > @/ path/Script_File_Name.sql ' special characters has not inserted correctly and it become something like 'h¿ta'.»»

    How to enter special characters correctly race (@) statement?

    Thank you

    If you create a file in Notepad, select the ANSI or the encoding UTF-8 in the dialog box save as.  Copy the Linux file in binary mode. Set the variable NLS_LANG ".» WE8MSWIN1252 ", if the file was saved with the ANSI coding or to. AL32UTF8", if the file was saved with UTF-8 encoding. Be sure to export the variable.  Then, start SQL * more and run the script.  I guess that you are on a U.S. or Western Europe of Windows version.

    Thank you

    Sergiusz

  • How to remove special characters that are not available in the key board

    Hi all
    How to remove special characters that are not available in the key board.
    select '106    ©      500049' str from dual;
    
    After removal of the special symbols ( not only copy right, it can be any special symbol other than key board symbols), I want to add a single space between two number.
    
    Output should be like:
    Str
    106 500049
    Thank you for your help in advance.
    select
     '106    © ® (k)      500049' str
    ,regexp_replace('106    © ® (k)     500049', '[^[:digit:]]+', ' ') r
    from dual
    
  • How to insert special characters

    Hey,.

    I can't understand how to insert special characters in a paragraph (the "Indent to Here" in this case).

    I tried text_frame.paragraphs [0] .silence += SpecialCharacters.INDENT_HERE_TAB;  but all I get is "1397319796" instead of the actual character.

    How to insert special characters instead of these numbers?

    Zoffix222 wrote:

    People who visit, but nobody don't know it?

    What, you mean that in the 5 minutes that you posted it responded to nobody? Shocking indeed.

    You already learned by yourself, 'content' is the wrong type of object stuff "SpecialCharacters' in. 'content' is the content of the text, translated in a simple string of Javascript. Only when you change a single 'character', you can use "SpecialCharacters", because at that time there Extendscript will see that you do not want to change the string "full"?

  • How to find special characters in a string of give/sentance

    Hi all

    I have a task to complete with the time to give. Because I'm not very good in PL/SQL, I need you're help.
    Condition is:

    I must come with the SQL or PL/SQL code which should return and find the hidden or special character in the name of the data files in a database. There are nearly 400 + database are present in almost any flavor of UNIX, and I need to check the database each.

    As you know, the name of the data file will be like this:
     /u02/instance_name\oradata\datafile_01.dbf 
    So, it should avoid these things and only discover the special characters in the name of the data file.
     
    a-z , A-Z , 0-9 and \ 
    Please keep in mind that... I'll be pulled the script Oracle the Oracle 9i client that will access all the databases of Oracle 9i to 11g in a short and give me the result.

    Please help me to solve this problem and let me know if you need more information.

    Hello

    Mukesh says:
    Hi Frank,.

    It is an excellent service. Thanks for you response.
    I want to change the query that... I should get only the name of these data files that are special characters of detention. I don't know how to put it in that condition. :(

    Here's one way:

    SELECT  file_name
    ,       ...     -- other expressions, if you want any
    FROM    dba_data_files
    WHERE   TRANSLATE ( file_name
                      , '?0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ\_/abcdefghijklmnopqrstuvwxyz'
                      , '?'
                      ) IS NOT NULL
    

    Among other expressions, you can put in the SELECT clause (if you wish) is a copy of the TRANSLATE function, you had in your message. That would underline exactly what characters rendering invalid file name.

  • How to avoid special characters in a string

    Hai.

    I want only Alphabets & numbers to appear on my channel. No other special characters except spaces. How can I do this?

    Hi Alice,.

    See the attached example.

    It will be useful.

    Mike

  • How to find special characters in a single query

    Dear Experts,

    Your usual help is needed to resolve the query. My query is ' how to find all special characters such as (% $* & @, ' / +-etc. in a single query?).
    Thank you.

    for example


    A_MIR
    A % SIM
    A * SIM
    SIM HAS)

    Hello

    This can work:

    select * from your_table where replace(translate(your_column,' abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890','x'),'x','') is not null
    

    Above code verifies an ascii and numbers. You can adjust the chain with other characters you want to see (exclude)

    Herald tiomela
    http://htendam.WordPress.com

  • How to prevent &amp; special characters conversion of &amp; amp;

    I try to use the extraordinary character & radic; in my help files.  However, the editor continues to change the ampersand with & amp; whenever I leave HTML in design view.  How to stop this behavior?

    Thank you

    Many people have had problems with HTML special characters in their "spelled" versions

    Have you tried a digital enconding for the same symbol? My Windows charmap indicates a character U + 221 a reference (I think translates UTF-8 0x221A); a site called webref.info shows HTML encoding of & #8730. Digital HTML seems more likely, but I think that HR went compatible to RH7 or 8 UTF-8 version.

    You can also try to select/copy/paste Windows charmap - I don't know if it will work better, but RoboHelp is quite oriented Windows.

    Sorry I can't be more specific, but I have an old version of HR and cannot test these suggestions.

  • How to handle special characters in the Apex

    Hello

    In my application, I have two regions - region report (interactive report) and other is region HTML with text elements two - Empno and name

    My report has two columns Empno (varchar2) and Ename (varchar2).

    When I click on the link change in the column of the report, the empno should be a read-only value EMPNO and ename is a text with the value of the ENAME field.

    When I run my application, I have encountered the following problems:
    1. If my empno has special characters such as "#", the characters after that is not posting
    2. If my empno has special characters such as "," characters after the decimal point is considered to be a value of next texitem

    Here is my authentication information,

    CTSAN_ORACLE_DB workspace
    Username [email protected]
    Password lakshmi321
    URL: http://apex.oracle.com/pls/apex/f?p=9444:19:4292839314890159:


    Please, I beg you. suggest me how to fix these problems.

    Thank you
    David...

    Published by: David on August 13, 2010 03:05

    Do not pass the data values in the URL. If it is possible to escape values to make URL - and APEX parameter-safe, it is much better to avoid the problem completely.

    Create a primary key of the substitution on the table which is an immutable discreet digital identifier and use it only as a URL parameter. In pages/target areas, use this value of PK to extract the data from the table.

  • How to enter special characters/symbols (i.e. the degree character) in the text boxes?

    Not a problem/w Firefox - I was wondering if there is a way to enter the special characters and characters (not on the keyboard) in the text boxes? I remember that there is a keyboard sequence that activates a context menu allowing the single character/symbol entry. Thanks in advance, Allan.

    See:

  • How to use special characters on a Japanese keyboard?

    Japanese keys (operating instructions)

    HI, I have a Japanese keyboard from microsoft (3000 comfort curve) its special character do not work. As if I try shift + 2 his writing @, although there is another icon in Japanese, I want to write that one. Is there any other combination to use these special characters as I changed the default value of the Japanese language. all keys on the keyboard are gud work, only question goes with special characters.please updated on an urgent basis.

    Vijay

    Hello

     
     
    What version of Windows 7 use you?
     
     
     
    If you are using Windows 7 Ultimate, you can consult the following links.
     
     
    Windows 7 language packs are available for computers that are running Windows 7 ultimate or Windows 7 Enterprise.
     
     
    Download languages for Windows. Get languages for Windows 7 and Windows Vista.
     
     
    Language packs.
  • How to remove special characters from the string using translate() without typing all special characters?

    Hi all

    I am trying to remove special characters without the help of regular expressions.

    translate (the column name or string,'!@#$ & * (* () _) * "" :} {?}) >? /, «, » ')

    I want to eliminate this manual process to give all special characters using a chr() or ascii() function.

    Please show me the way.

    Thanks in advance

    Similar to the solution of Michael...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, i like (select level 1 c from dual connect by level<=>
    3 less
    4 Select + 32 (level-1) double connect by level<=>
    5 less
    6 select + 58 (level-1) double connect by level<=>
    7 less
    8 select + 91 (level-1) double connect by level<=>
    9 less
    10. Select 123 + (level-1) from dual connect by level<=>
    11 less
    12. Select 255 double
    13            )
    14, ts as (select level r, substr (str, level 1) c
    15 t
    16 connect by level<=>
    17             )
    18, tf as (select row_number() (order for r) r
    19                    ,ts.c
    20 TS
    21 I join on (i.c = ascii (ts.c))
    22             )
    23 select replace (sys_connect_by_path(c,'!'),'! ') Str
    24 TF
    25 where connect_by_isleaf = 1
    26 connect r = prior r + 1
    27 * start with r = 1
    SQL > /.

    STR
    -----------------------------------------------------------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

    Or something as horrible as this...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, I like (select replace (sys_connect_by_path (chr (c), 'A'), 'A') as tr)
    3 of)
    4 select c, rownum r
    5 (select 32 + (level-1) as the double connection by level c<=>
    6                         union
    7 select + 58 (level-1) double connect by level<=>
    8                         union
    9 select + 91 (level-1) double connect by level<=>
    10 the union
    11. Select 123 + (level-1) from dual connect by level<=>
    12 union
    13. Select 255 double
    14 tri 1
    15                        )
    16                  )
    17 where connect_by_isleaf = 1
    18 log r = prior r + 1
    19 start with r = 1
    20            )
    21 select translate (str, 'A' |) TR, 'A') as str
    22 * t, I
    SQL > /.

    STR
    --------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

  • How to use special characters (single quote) in input values?

    I have a query that contains a clause: field: tags_set

    (the field contains string values)

    I would like to test in sqlplus.

    I found this article https://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:113012348062 explaining how to define variables in sqlplus.

    However, my variable should contain something like ("xyz", "abc")

    I tried

    SQL > tags_set varchar2 variable

    "SQL > exec: tags_set: = '(' musique');

    "START: tags_set: = '(' musique'); END;

    *

    ERROR on line 1:

    ORA-06550: line 1, column 23:

    PLS-00103: encountered the symbol "MUSIC" when expected in the following way:

    * & = - + ; <>/ is mod remains not rem

    < an exponent (*) > <>or! = or ~ = > = < = <>and like2 or

    like4 likec between | submultiset of type multiset Member

    The symbol ' * was inserted before 'MUSIC' to continue. '

    ;

    Then I did some research and found: characters in queries

    Therefore, I changed the previous for:

    SQL > exec: tags_set: = '(\'Music\')';

    START: tags_set: = '(\'Music\')'; END;

    *

    ERROR on line 1:

    ORA-06550: line 1, column 24:

    PLS-00103: encountered the symbol "MUSIC" when expected in the following way:

    * & = - + ; <>/ is mod remains not rem

    < an exponent (*) > <>or! = or ~ = > = < = <>and like2 or

    like4 likec between | submultiset of type multiset Member

    and finally

    SQL > exec: tags_set: = "{('a ')}";

    START: tags_set: = "{('a ')}"; END;

    *

    ERROR on line 1:

    ORA-06550: line 1, column 24:

    PLS-00103: encountered the symbol "A" when expecting one of the following conditions:

    * & = - + ; <>/ is mod remains not rem

    < an exponent (*) > <>or! = or ~ = > = < = <>and like2 or

    like4 likec between | submultiset of type multiset Member

    The symbol ' * was inserted before 'A' to continue. '

    What is the way to make it work? (I know that I can move to something like "xyz ~ abc' and treat inside the query")

    Thanks in advance.

    A number of things.  When you define a string variable, you must give him a length or default is 1.  You can escape a quote character by doubling it (i.e. two single quotes) or you can use the q rating:

    SQL > tags_set variable varchar2 (100);

    "SQL > exec: tags_set: = '('' musique '');

    PL/SQL procedure successfully completed.

    SQL > print tags_set

    TAGS_SET

    --------------------

    ("Music")

    SQL > exec: tags_set: = q '{("music", "Drama")}';

    PL/SQL procedure successfully completed.

    SQL > print tags_set

    TAGS_SET

    --------------------

    ("Music", "Drama")

    John

Maybe you are looking for

  • Using a remote control or the remote with two Apple TV app?

    1 can a remote AppleTV, is the most recent or a last generation we use with two different AppleTV (one is the most recent and is the older generation)? 2. an iPhone Remote APP can be used with two different Apple TV? Thank you.

  • iPod touch 5th generation 9.3

    Is the recent 9.3 update available for the iPod touch 5th generation? IOS display 9.2.1. Your iPod software is updated over the air and on iTunes via the cable. Did a restore without change.

  • Is compatible with Windows 10 Satellite L50-B-1DZ?

    I received the notification windows 10 on my laptop but when I try to book a copy it tells me that my processor is not supported! This laptop is less than a year and came with pre-installed Windows 8.1... Surely this cant be the TOSHIBA case?

  • EliteBook hp8530p: serial port PCI

    Hello, im using elitebook hp8530p and I can not find PCI serial port for windows 10 64-bit driver. Any solution? Thank you

  • PCI single - EliteBook 8540p Communications controller

    Hi all I'm having a problem with the following driver: PCI Simple Communications controller PCI\VEN_8086 & DEV_3B64 & SUBSYS_1521103C & REV_06 That's an EliteBook 8540 p running on Windows 7 Enterprise 64-bit. I already tried to install the following