How to change one character string to char

hi all
i got string but only one character
i got 1,2,3,E
since i got 'E' here..........
i need to convert to it to character....
but how to change it.... i only know String to integer using Integer.parseInt() method....
but i don't know about char...................

You should really check the API first:
http://java.sun.com/j2se/1.4.2/docs/api/index.html
Take a look at String.charAt(int index) method.
/Kaj

Similar Messages

  • How to change the Character Set from AL32UTF8 to WE8DEC

    Hello!!
    I want to know how to change the character set in the database from AL32UTF8 to WE8DEC.
    I tried to use the comand ALTER DATABASE CHARACTER SET but I got an error because WE8DEC is not a superset of AL32UTF8.
    I need to import tables from a server that uses WE8DEC. So when I do the import to my server, wich has AL32UTF8 , I can't import the rows that include an Ñ.
    So I want to change the caracter set to WE8DEC. How can I do it?
    Is it needed to change the language configuration? The remote server has AMERICAN_AMERICA, and my server has MEXICAN SPANISH_MEXICO (both uses text in spanish).
    Thanks a lot!!

    When you export from WE8DEC server what did you use
    for NLS_LANG char set? And when importing?
    The export was done in another computer because I can't do the export in the server (I have 10g, and the remote server has 9i and the export is not working). In my server, when I tried to do the import, the NS_LANG value was MEXICAN SPANISH_MEXICO.WE8MSWIN1252.
    When I try to import to my database I got the error:
    import done in WE8DEC character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    export client uses WE8MSWIN1252 character set (possible charset conversion)
    . importing USRMCR06's objects into PRIMARIZACION
    . . importing table "CHG_FONDOS_MARZO_CD_MOR"
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "PRIMARIZACION"."CHG_FONDOS_MARZO_CD_MOR".
    "NOMBRE" (actual: 41, maximum: 40)
    Column 1 16623436
    Column 2
    Column 3 Pymes_1
    Column 4

  • How to change one cell's backColour in DataGird.

    how to change one cell's backColour in DataGird.who can tell
    me how to do?Thangks

    Hi,
    You may need to use custom skin for that.
    -Arun

  • Changing one character in a string...how hard can it be...???

    Hey guys,
    I posted something the other day about changing a binary string to one complement. Well, now I want to change that again to the two's complement of the same number.
    The (messy) code I got so far is as follows:
    import java.util.*;
    class twosComplement {
      public static void main(String[] args) {
          Scanner reader = new Scanner(System.in);
          String binary;
          String i = "0";
          String j = "1";
          System.out.println("Enter a binary String:");
          binary = reader.nextLine();
       //   int x = 15;
       // String binary = Integer.toBinaryString(x);
       // binary = ("00000000"+binary).substring(8-binary.length());
        System.out.println("Your binary number is " +binary);
        String complement = binary.replaceAll("0","x").replaceAll("1","0").replaceAll("x","1");
        System.out.println("One's complement of your binary number is " +complement);
        int n = 0;
        int k = binary.length()-n;
        String m = charAt(k);
        if (charAt(k).equals(i)) binary.replace(charAt(k), j);
        else n++;
        System.out.println(binary);
    //    do {k++; }
    //    while (charAt(k).equals(i)) 
        private static String charAt(int k) {
            throw new UnsupportedOperationException("Not yet implemented");
        }the bit at the bottom is something netbeans kindly offered to create for me, it cut out a few syntax errors but didn't quite get the program to work.
    I'm pretty sure the root of my troubles is coming from the use of the "charAt" method, which as far as i know, would be better used with arrays, but I don't know of another way to sort this stuff...
    any help would be muchly appreciated.
    Aaron.

    ok. The following is a section from the original code (see above). I was hoping this code would take a binary string (ie, '1010101') and change the least significant bit which is a '0' to a '1'. The following section is my attempt at solving this problem, but as I run it, I encounter errors. I've been studying java for 2 months. I would like to know if anybody knows WHY this isn't working, and could offer an alternative method (as I've already stated, I think the use of the method 'charAt' is the main problem)
    int n = 0;
        int k = binary.length()-n;
        String m = charAt(k);
        if (charAt(k).equals(i)) binary.replace(charAt(k), j);
        else n++;
        }Is that better?

  • How to change the character set encoding not being a superset one

    HI, i have a fresh installed database, but i realize the character set support in my client is not good enough, since its a not production database i want to change the character set encoding to anothor one not being a superset of the old one.
    I have tried the "ALTER DATABASE CHARACTER SET WE8MSWIN1252" but it fails claiming i need a superset one.
    I guess its just a single steps to do it, i have all the privileges, just not the time to reinstall and setup everything.

    Do you know what that does to the existing data, though? My hunch would be that any characters which have a different binary representation in the source & target character sets would be corrupted.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to change Japanese character set

    The below are my character set in my DB
    NLS_CHARACTERSET=WE8ISO8859P1
    NLS_NCHAR_CHARACTERSET=UTF8
    Correct Answer (If I use english language the result is correct)
    ==========
    select product(',','AB_BC ,DE') from dual;
    (AB_BC, DE,,,)
    After altering the parameter at session level to get Japanese character set I am getting wrong result
    it is giving wrong result
    ==============
    select product(',','A_BC ,DE') from dual;
    (AB, BC , DE,,,,)
    How to change at session leavel to get Japanese character set

    user446367 wrote:
    Correct Answer (If I use english language the result is correct)What does "use english language" mean in this context?
    After altering the parameter at session level to get Japanese character set I am getting wrong resultThere is no such thing. Show us (copy paste) the commands and the resulting output, please.
    select product(',','A_BC ,DE') from dual;As requested several times already in your other thread on the same subject, it would greatly help forum members to help you if you would post the pl/sql of this function.
    AFAIK, product() is not a built-in standard Oracle function.
    How to change at session leavel to get Japanese character setThat is probably not what's needed, but anyway, here's one simple example:
    export NLS_LANG=.JA16SJIS
    sqlplus u/p@svc
    sql> ...

  • How to change one iView to another in portal page by clicking the third one

    Hi all!
    I have created four iViews: two speedometers with web application designer and two iViews with visual composer. I added the speedometers and a visual composer iView #1 to a portal page (default view). The requirement is that by clicking the speedometer #2, the visual composer iView #2 would replace visual composer iView #1 on the portal page. If the user then would select the speedometer #1 again by clicking it, visual composer iView #2 would replace #1 again and so on.
    I have read article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b65a5d-f397-2910-a78a-f5544f21c33b?QuickLink=index&overridelayout=true, but it is more about filtering VC iView values with BI web items. I don't need to filter anything, just to change one iView to another in a portal view by clicking a third one.
    I have thought of placing two VC iView to a same portal page area and defining one of the to be visible and another hidden (by clicking speedometers these properties would change), but I haven't found the way how that could be done in portal. Is there a way to define some OnClick-method to change visibility parameters or url-address of another iView?
    One solution might be¨on the other hand to transfer any value to VC by clicking a speedometer and to change the visibility of the VC iViews according to that value (the speedometer #1 should in that case transfer other value to VC than speedometer #2). I don't know if that is possible with speedometers - you can't reference any characteristics or variables with it.
    If you have an idea, what would be the best way to accomplish this requirement, I would be very glad to hear about it! We are in VC 7.0.
    Points garanteed!
    Regards
    Sari

    Hi,
    In the portal, create a page and place the iView having the three input fields on top. Place the second iView below. Keep differing the second iView for every page. In this way you can make the iView with 3 input fields only in the desired pages. You can use EPCF to invoke / navigate to another iView.
    Regards
    Srinivasan T

  • How to change the character set of the D/b

    Hello All,
    When i issue the command
    ALTER DATABASE CHARACTER SET UTF8
    It gives me the error that I can only change the character set to a superset of the existing character set.
    Is there any way i can change the character set without recreating the database.
    TIA
    Naveen

    The existing character set is the basis for the new character set. This is fair enough, because the character set determines how the actual data is stored in the database. Allowing new characters is a minor change: completely re-encoding your entire database is not.
    I'm afraid export, recreate and import is your only option.
    Cheers, APC

  • How to check one character NSString if it is A-Z?

    How to check a one character long NSString, to see if it falls between the range A-Z? including upper and lower case.
    thanks

    I think for anything Unicode, the meaning is self-defining. By this I mean "Marks" are the set of characters they have grouped together and called "Marks". I found this site that explains the categories. A German eszett ß is actually a lowercase character, not a mark. It seems that the Marks are special combining characters in Arabic, Hebrew, Tamil, etc.
    The key thing to keep in mind is that MacOS X is designed to work in all of those languages. So, if you are writing code to "check for lowercase", you have to realize that there are literally thousands of lowercase letters. You should probably have a graceful way to handle ß and similar characters. One thing I have done in the past is just substitute some special character for anything that isn't strictly "a-z". That way, regardless of the input, I know what the output will be. That worked for my particular application, but it isn't appropriate in all or even most applications.

  • How to serch a character string in a BLOB (case insensitive)

    Hi
    Could somebody help me with this please.
    I need to search for the existance of a character string in a BLOB column of a table.
    I can do it in the below way.
    PROCEDURE search (in_search VARCHAR2) IS
    lob_doc BLOB;
    Pattern VARCHAR2(30);
    Position INTEGER := 0;
    Offset INTEGER := 1;
    Occurrence INTEGER := 1;
    BEGIN
    Pattern := utl_raw.cast_to_raw(in_search);
    SELECT BLOB_CONTENT INTO lob_doc
    FROM documents WHERE ein = '702265981';
    DBMS_LOB.OPEN (lob_doc, DBMS_LOB.LOB_READONLY);
    Position := DBMS_LOB.INSTR(lob_doc, Pattern, Offset, Occurrence);
    IF Position = 0 THEN
    DBMS_OUTPUT.PUT_LINE('Pattern not found');
    ELSE
    DBMS_OUTPUT.PUT_LINE('The pattern occurs at '|| position);
    END IF;
    DBMS_LOB.CLOSE (lob_doc);
    END search;
    But the problem is, it does a case sensitive search.
    I need a case-insensitive search
    Thanks in Advance

    The best way would be to use Oracle Text.
    However, if you want a quick and dirty solution, I would convert to CLOB, and (assuming 9i) you can use LOWER on the CLOB.
    Click on this link for a blob_to_clob function.
    Re: BLOB to CLOB?

  • How to Change National character set for a database

    Hi All,
    My database is Oracle 10G. Stand alone DB.
    National character set for my DB is "WE8ISO8859P1" and need to change national character set to UTF8.
    Need Help on this.
    Thanks in advance.
    Regards,
    Suresh

    Please go through the topic,
    [http://arjudba.blogspot.com/2009/02/what-is-national-character-set.html|http://arjudba.blogspot.com/2009/02/what-is-national-character-set.html] [http://arjudba.blogspot.com/2009/03/unicode-characterset-in-oracle-database.html|http://arjudba.blogspot.com/2009/03/unicode-characterset-in-oracle-database.html]
    and decide whether you need migration . If you need migration then have a look at,
    [http://arjudba.blogspot.com/2009/03/difference-between-we8mswin1252-and.html|http://arjudba.blogspot.com/2009/03/difference-between-we8mswin1252-and.html]
    [http://arjudba.blogspot.com/2009/03/difference-between-we8iso8859p1-and.html|http://arjudba.blogspot.com/2009/03/difference-between-we8iso8859p1-and.html]
    [http://arjudba.blogspot.com/2009/03/difference-between-we8iso8859p1-and_11.html|http://arjudba.blogspot.com/2009/03/difference-between-we8iso8859p1-and_11.html]
    And always check for reports in csscan.
    Edited by: user9533551 on 07-Jul-2009 04:29

  • How to change a field of type CHAR of a database table to DATS

    Dear ABAP experts,
    I have a database table: ZLT_aztnew with fields M1, M2, K1, K2, A1, A2, P1, P2, S2, D1, D2,  STD, BES. All these fields are of type 'Character'.  except D2 which is of type DATS. The field D1 is date and is in format DD.MM.YYYY.
    I want to convert this field D1 to type DATS so that I can use a date range through 'selection option' to select other  data of other fields (M1, M2, K1, K2, A1, A2, P1, P2, S2, D1, STD, BES.) related to field D1 from the database table Zlt_aztnew.
    How should I introduce this change (CONVERSION OF D1 CHAR to DATS in the .AZT file upload code itself.
    Problem: If I define D1 as Type  DATS in database table ZLT_AZTNEW then the UPLOAD fails.
    The AZT file upload code is:
    Data  it_string   type stringtab.
    Data  lv_string    type string.
    DATA:  itab  TYPE STANDARD TABLE OF zlt_aztnew.
    DATA:  wa_tab    TYPE zlt_aztnew.
    DATA: file_str1 type string.
    Data: it_tab TYPE STANDARD TABLE OF file_table,
            lw_file LIKE LINE OF it_tab,
            gd_subrc TYPE i.
    SELECTION-SCREEN begin of block blk with frame title text-100.
      SELECTION-SCREEN SKIP 2.
        parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
        window_title = 'Select only Text File'
        default_filename = '.azt'
        multiselection = 'X'
        CHANGING
        file_table = it_tab
        rc = gd_subrc.
    READ TABLE it_tab INTO lw_file INDEX 1.
       p_file = lw_file-FILENAME.
    Start-of-Selection.
      file_str1 = P_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = file_str1
    *    filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\test.azt'
      tables
        data_tab                      = it_string
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT it_string  INTO lv_string.
    clear wa_tab.
    SPLIT lv_string AT ';' INTO  wa_tab-M2   wa_tab-k2   wa_tab-A2   wa_tab-P2  wa_tab-S2   wa_tab-D1  wa_tab-STD  wa_tab-BES.
    Append wa_tab to itab.
    Write: sy-uline(120),
              / sy-vline,
                2 wa_tab-M2,
               11 sy-vline,
               13 wa_tab-k2,
               25 sy-vline,
               27 wa_tab-A2,
               32 sy-vline,
               34 wa_tab-P2,
               39 sy-vline,
               41 wa_tab-S2,
               46 sy-vline,
               48 wa_tab-D1,
               60 sy-vline,
               62 wa_tab-STD,
               72 sy-vline,
               74 wa_tab-BES,
              120 sy-vline.
    ENDLOOP.
    DATA: Answer.
    UPDATE zlt_aztnew From Table itab.
    * INSERT ZLT_aztnew From Table itab accepting duplicate keys.
    If sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
       TITLEBAR                    = 'TITLE '
    *   DIAGNOSE_OBJECT             = ' '
        text_question               = 'Wollen Sie die vorhandenen Inhalte ändern'
       TEXT_BUTTON_1               = 'Ja'(001)
    *   ICON_BUTTON_1               = ' '
       TEXT_BUTTON_2               = 'Nein'(002)
    *   ICON_BUTTON_2               = ' '
       DEFAULT_BUTTON              = '1'
       DISPLAY_CANCEL_BUTTON       = 'X'
    *   USERDEFINED_F1_HELP         = ' '
    *   START_COLUMN                = 25
    *   START_ROW                   = 6
    *   POPUP_TYPE                  =
    *   IV_QUICKINFO_BUTTON_1       = ' '
    *   IV_QUICKINFO_BUTTON_2       = ' '
    IMPORTING
       answer                      = answer
    * TABLES
    *   PARAMETER                   =
    EXCEPTIONS
       TEXT_NOT_FOUND              = 1
       OTHERS                      = 2
    *IF sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    IF Answer = '1'.
    WRITE: / 'Die vorhandenen Inhalte war geändernt'.
    MODIFY zlt_aztnew From Table itab.
    ENDIF.
    ENDIF.
    TO introduce a date range and pull data from the database table Zlt_AZTNEW--> I wrote the BELOW code SEPARATELY,
    but after execution, the error I am getting is: Enter a valid Date (for example, 31.03.2014).
    TABLES:   ZLT_aztnew.
    TYPES:  Begin OF ty_AZTN,
             M2   TYPE Zlt_AZTNEW-M2,
             K2   TYPE Zlt_AZTNEW-K2,
             A2   TYPE Zlt_AZTNEW-A2,
             P2   TYPE Zlt_AZTNEW-P2,
             S2   TYPE Zlt_AZTNEW-S2,
             D1   TYPE Zlt_AZTNEW-D1,
             STD  TYPE Zlt_AZTNEW-STD,
             BES  TYPE Zlt_AZTNEW-BES,
           END OF ty_AZTN.
    DATA:   gv_datum  TYPE d.
    DATA:   it_aztn TYPE STANDARD TABLE OF ty_aztn with  header line.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
        date_external                  = zlt_aztnew-D1
    *   ACCEPT_INITIAL_DATE            =
    IMPORTING
       DATE_INTERNAL                  = gv_datum
    * EXCEPTIONS
    *   DATE_EXTERNAL_IS_INVALID       = 1
    *   OTHERS                         = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
           SELECT-OPTIONS: s_datum FOR gv_datum.
          INITIALIZATION.
            s_datum-low  = sy-datum.
            s_datum-high  = sy-datum.
            APPEND s_datum.
    ********** After this further code follows with "SELECT"  wherein I want to use the gv_datum as Where condition.
    SELECT   M2
                      K2
                      A2
                      P2
                      S2
                      D1
                      STD
                      BES
             FROM     ZLt_AZTNEW
             INTO     TABLE it_AZTN
             Where    D1 = gv_datum.
    Please provide me your valuable suggestion to correct any flaw in my code above.
    Looking forward for your reply.
    Best regards
    Chandan Kumar

    Dear Rama,
    Plz refer the following difference in naming conventions as compared to your suggestion:
    it_flat_file --> itab, (internal table for AZT fiel upload and split)
    ls_flat_file ---> wa_itab,
    Ztable --> Zlt_aztnew2,    (Dbase file)
    it_ztable ---> it_zlt_aztnew2, (internal table)
    ls_ztable --> wa_aztnew2,
    I wrote the following code but it is not working. Please also refer the attached screen shot of the database table : ZLT_AZTNEW2.
    Data  it_string   type stringtab.
    Data  lv_string   type string.
    DATA: file_str1 type string.
    Data: it_tab TYPE STANDARD TABLE OF file_table,
          lw_file LIKE LINE OF it_tab,
          gd_subrc TYPE i.
    TYPES: Begin of Ty_itab,
            M2  TYPE Char7,
            K2  TYPE Char3,
            A2  TYPE Char3,
            P2  TYPE Char3,
            S2  TYPE Char3,
            D1  TYPE Char8,
            STD TYPE Char8,
            BES TYPE Char80,
           END OF ty_itab.
    DATA: itab Type Standard Table of ty_itab,
          wa_itab Type ty_itab.
    DATA: it_zlt_aztnew2 type standard table of Zlt_aztnew2,
          wa_aztnew2     TYPE Zlt_aztnew2.
    SELECTION-SCREEN begin of block blk with frame title text-100.
      SELECTION-SCREEN SKIP 2.
        parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
        window_title = 'Select only Text File'
        default_filename = '.azt'
        multiselection = 'X'
        CHANGING
        file_table = it_tab
        rc = gd_subrc.
      READ TABLE it_tab INTO lw_file INDEX 1.
      p_file = lw_file-FILENAME.
    Start-of-Selection.
      file_str1 = P_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = file_str1
    *    filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\test.azt'
      tables
        data_tab                      = it_string
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT it_string  INTO lv_string.
      Clear wa_itab.
      SPLIT lv_string AT ';' INTO  wa_itab-M2   wa_itab-k2   wa_itab-A2   wa_itab-P2  wa_itab-S2         wa_itab-D1  wa_itab-STD  wa_itab-BES.
      append wa_itab to itab.
      Write: sy-uline(120),
              / sy-vline,
                2 wa_itab-M2,
               11 sy-vline,
               13 wa_itab-k2,
               25 sy-vline,
               27 wa_itab-A2,
               32 sy-vline,
               34 wa_itab-P2,
               39 sy-vline,
               41 wa_itab-S2,
               46 sy-vline,
               48 wa_itab-D1,
               60 sy-vline,
               62 wa_itab-STD,
               72 sy-vline,
               74 wa_itab-BES,
              120 sy-vline.
    ENDLOOP.
    LOOP at itab into wa_itab.
      CLEAR wa_aztnew2.
      wa_aztnew2-D1+0(4) = wa_itab+6(4).
      wa_aztnew2-D1+4(2) = wa_itab+3(2).
      wa_aztnew2-D1+6(2) = wa_itab+0(2).
    Append wa_aztnew2 to it_zlt_aztnew2.
    ENDLOOP.
    MODIFY Zlt_aztnew2 from table it_zlt_aztnew2.
    Looking forward for your suggestiojn.
    Regards
    Chandan

  • How to change the name of the char when we copy macro from existed macro?

    Hello Experts,
    I have copied planning book and macro from one planning area to another planning area. all the planning books/Macros are copied. now i want to change of the characteristics as per the new planning area in the MACRO?.
    How do i change the char in the newly copied planning macro. i have changed kfs and char in the planning book but i am notseeing any option in the macro.
    can you pls. help. thanks in advance.
    VACHAN

    You dont really have to change the characteristics anywhere in the macros
    When the macros run they get executed for the characteristics of the current planning area.
    However if there is any macro which may be reading a value of the characteristic by hardcoding the name of the characteristic, you would need to replace the old char name with the new one..

  • How to get one character at a specified index and put it in a mutablestring

    I am new in cocoa programing and i am stock.
    I am trying to get a character in a NSString and i want to put it in a NSMutableString with the command appendString.
    For now it's not working. I try with different approach but i didn't find the right way to do that. It's probably very simple but i just don't see hit.
    I try with characterAtIndex and with getCharater. And now i am thinking to use charcaterRange but i don't know how to articulate an NSRange.
    Maybe somebody could show an example of of what i have to do to do that.
    I put this <<<<<<<<<<<<<<<< to show where in my code it's not working
    Thanks a lot for your help it's very appreciate.
    *The header:*
    #import <Cocoa/Cocoa.h>
    @interface Controleur : NSObject
    NSMutableArray *touche_presser;
    NSMutableArray *typedevariable;
    NSMutableString *formule;
    int calculencours;
    int i;
    int n;
    IBOutlet NSTextField *affichagede_laformule;
    IBOutlet NSTextField *informationdesupport;
    -(void) awakeFromNib;
    -(IBAction)touche_clear:(id)sender;
    -(IBAction)touche_0:(id)sender;
    -(IBAction)touche_1:(id)sender;
    -(IBAction)touche_2:(id)sender;
    -(IBAction)touche_3:(id)sender;
    -(IBAction)touche_4:(id)sender;
    -(IBAction)touche_5:(id)sender;
    -(IBAction)touche_6:(id)sender;
    -(IBAction)touche_7:(id)sender;
    -(IBAction)touche_8:(id)sender;
    -(IBAction)touche_9:(id)sender;
    -(IBAction)touche_plus:(id)sender;
    -(IBAction)touche_moins:(id)sender;
    -(IBAction)touche_multiplier:(id)sender;
    -(IBAction)touche_diviser:(id)sender;
    -(IBAction)touche_egale:(id)sender;
    -(NSString *) constructionde_laformule;
    -(NSNumber *) analysed_unerafale: (NSString *) elementd_uneformule;
    @end
    *The Methode:*
    -(NSNumber *) analysed_unerafale: (NSString *) elementd_uneformule;
    // Ici, j'analyse une partie de la formule et retourne le résultat (nsnumber)
    // dans la variable resultatde_l_analyse_de_larafale
    int ia;
    int nombrede_caractere_dans_element_de_laformule;
    NSNumber *resultat_actuel;
    resultat_actuel = [[NSNumber alloc]initWithInt:0];
    NSNumber *resultat_precedant;
    resultat_precedant = [[NSNumber alloc]initWithInt:0];
    NSNumber *resultatde_l_analyse_de_larafale;
    resultatde_l_analyse_de_larafale = [[NSNumber alloc]init];
    NSMutableString *caractere_x;
    caractere_x = [[NSMutableString alloc]init];
    NSMutableString *operateur;
    operateur = [[NSMutableString alloc]init];
    nombrede_caractere_dans_element_de_laformule = [elementd_uneformule length];
    ia = 0;
    for (n=1; n <= nombrede_caractere_dans_element_de_laformule; n = n+1)
    ia++;
    char y = [elementd_uneformule characterAtIndex:ia]; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< here
    NSString *x = [[NSString alloc] initWithUTF8String: y]; //[NSString stringWithFormat:@"%@", y]; <<<<<<<<<<<<< and here
    [caractere_x setString:@""];
    [caractere_x appendString:x];
    return resultatde_l_analyse_de_larafale;
    @end
    P.S.
    Excuse my bad english i am french speaking

    I also couldn't figure out what your code is doing, but hope this sample code will help:
    NSString *firstString = @"Canada";
    NSMutableString *secondString = [NSMutableString stringWithCapacity:10];
    int index = random() % [firstString length];
    // get a substring of length 1 at the index position of firstString
    NSString *oneCharString = [firstString substringWithRange:NSMakeRange(index, 1)];
    // append the single-character substring to secondString:
    [secondString appendString:oneCharString];
    NSLog(@"firstString=%@ index=%d secondString=%@", firstString, index, secondString);
    I was testing the above when your first reply was posted. It uses the same method Et suggested, but I didn't want to just throw it away.

  • How to change Database character set?

    Hi,
    We are planning to make a clone of production Database which has:
    select value$ from sys.props$ where name='NLS_CHARACTERSET';
    AL32UTF8
    We have set up a new server for that purpose and installed database, but by default it has
    select value$ from sys.props$ where name='NLS_CHARACTERSET';
    WE8ISO8859P1
    So after making full import from full backup file we have some broken character in database.
    How can I change from WE8ISO8859P1 to AL32UTF8?
    I expect that I need to shutdown the clone database or even make from scratch full import.
    Thanks

    I made a full backup from production database which has AL32UTF8
    My new database is fresh and it has WE8ISO8859P1
    I think the reason why I'm having some corrupted characters is because of difference in Character set between two database, right?
    so I will need to change new database Character set to AL32UTF8 then make again full import.

Maybe you are looking for

  • How to organise the library best for workflows?

    I need some help to set up my library propperly. I'm using Aperture for a year now and the organisation of my first major project was a bit of a mess and I lost control. I had a folder as top level, then a Project (box) containing folders and smart f

  • Photoshop elements 11 on disk but computer has no disk drive

    I recently switched computers and would like to use my purchased copy of Photoshop Elements 11 on my new computer. How do I install Photoshop elements 11 without a disk drive since the trials are all now Elements 12?

  • PDF created from InDesign not viewing correctly in Firefox

    I have exported PDF files to be uploaded to Firefox. When they are uploaded all drop shadows etc. turn blocky. Some fonts do not appear correctly. It is not always the same font and it will just be one line out of a paragraph. It appears to be that F

  • Accept command activation

    Hi, i don't manage to activate the sqlplus command ACCEPT and i don't manage to open to sql script which contains this code. Can you help me on this point Thanks a lot. Nathalie Here is my code SET SERVEROUTPUT ON SET ECHO OFF SET VERIFY OFF ACCEPT p

  • Where is RDP Folder in RD Web server?

    Does anyone know where I can find the RDP folder found in C:\Windows\Web\RDWeb\Pages? I remember in RDS 2008, there is an RDP folder exists inside RDWeb\Pages which contains all the RDP files and icons. Its missing on RDS 2012.