How do you write ?

hi all,
what is your preferred way to handle statements exceptions:
try {
  Statement stm = conn.createStatement();
  try {
    // execute statements
    conn.commit();
  } catch (SQLException sqle) {
    // handle error
    conn.rollback();
  } finally {
    stm.close();
} catch (SQLException sqle) {
  // handle error again ?
}or ...
Statement stm = null;
try {
  stm = conn.createStatement();
  // execute statements
  conn.commit();
} catch (SQLException sqle) {
  // handle error
  try {conn.rollback();}catch(SQLException sqle){/*nothing here ?*/}
} finally {
  if (stm!=null)
    try {stm.close();}catch(SQLException sqle){/*nothing here ?*/}
}or something else ? ...
thanks

Miksi tämä sähköpostiviesti on tullut minun osoitteeseen?   Eikä tämä ole ensimmäinen kerta kun minulle tulee väärin postia.   Miltä tämä sinusta tuntuu?
      Terv. Seppo
Date: Thu, 22 Jul 2010 10:27:47 -0600
From: [email protected]
To: [email protected]
Subject: Re: how do you write
Hi Sandy,
Acrobat Pro 9 is an excellent tool for creating and distributing forms; however, if a form was created in Acrobat and enabled for completion, you should be able to fill it out using Adobe Reader. As not all forms are enabled in this way, you won't be able to complete all forms digitally. For more information about Acrobat Pro, please refer to the product information page:
http://www.adobe.com/products/acrobatpro/
If you're using Windows, you can also download a free 30-day trial of Acrobat from right here:
http://www.adobe.com/products/acrobatpro/tryout.html
(Unfortunately, there is no Mac trial available at this time).
I also encourage you to stay tuned to changes taking place at Acrobat.com over the next several months; you may find that they'll be interesting to you.
Best regards,
Rebecca
>

Similar Messages

  • How do you write sideways in Pages?????

    How do you write sideways in pages w/ the page upright?

    This awesome tip solved my issue; it works with graphics, too. Thanks very much!!!!!!!
    Create a text box, type what you want in it, then
    rotate it using the Inspector (Select the text box,
    go to the "metrics" tab of the inspector, and rotate
    it with the little wheel).

  • How do you write on the documents useing using work space

    how do you write on the documents using work space

    What type of documents are you trying to write on?

  • How do you write UNDO for a text item?? examples? or a REDO??

    How do you write UNDO for a text item?? examples? or a REDO??
    I created a pop-up menu with CUT, COPY, PASTE, UNDO, CLEAR for my text items.
    Using MAGIC menu type works great but there is no MAGIC for UNDO or REDO.....
    How do you write UNDO for a text item?? examples? or a REDO??
    I have Oracle Forms 6i...
    Lets say I highlight all the text in the text item, and start typing over it... then I realize OH NO it is the wrong text field...
    Now I want to UNDO the typing and get back to the previous text.
    I'd use the initial value that was populate right? How do I access that if that is correct?
    Thanks, Bill

    You can use;
    <ITEM> := Get_Item_Property(<ITEM>,DATABASE_VALUE);
    Or you will have to write a pre-text-item trigger;
    PRE-TEXT-ITEM:
    :CTRL.CURRENT_VAL := :<BLOCK>.<ITEM>
    MENU (PL/SQL):
    :<BLOCK>.<ITEM> := :CTRL.CURRENT_VAL;
    You may also want to set the item property back to ITEM_IS_VALID so that item validation does not fire again.

  • How do you write a deterministic clause?

    How do you write / code a deterministic clause? I was told to use it instead of Target buckets
    Thanks,

    This is my target_bucket function. I have been trying to create a rewrite enabled materialized view and I have been able to do that. I was told to use a deterministic clause to be able to make the code into a re-write enable materialized view.
    THIS IS THE TARGET BUCKET CODE / FUNCTION.
    GRP_OR_BCKT_IN CHAR, -- 'G' or 'B'
    PTD_OR_RESV_IN CHAR, -- 'P' or 'R'
    CLM_KIND_IN CHAR,
    CODE_IN CHAR,
    PTD_1 NUMBER,
    PTD_2 NUMBER,
    PTD_3 NUMBER,
    PTD_4 NUMBER,
    PTD_5 NUMBER,
    PTD_6 NUMBER,
    PTD_7 NUMBER,
    PTD_8 NUMBER,
    PTD_9 NUMBER)
    RETURN NUMBER IS
    TEMP NUMBER := 0;
    BEGIN
    SELECT /*+ INDEX(INDICATOR_SUM IDX_INDICATOR_SUM_GRP)*/
    SUM(DECODE(INDICATOR_SUM.INDICATOR,
    1, PTD_1,
    2, PTD_2,
    3, PTD_3,
    4, PTD_4,
    5, PTD_5,
    6, PTD_6,
    7, PTD_7,
    8, PTD_8,
    9, PTD_9,
    0)) INTO TEMP
    FROM INDICATOR_SUM WHERE
    INDICATOR_SUM.GRP_OR_BCKT = GRP_OR_BCKT_IN AND
    INDICATOR_SUM.PTD_OR_RESV = PTD_OR_RESV_IN AND
    INDICATOR_SUM.CLM_KIND = CLM_KIND_IN AND
    INDICATOR_SUM.CODE = CODE_IN;
    RETURN NVL(TEMP,0);
    EXCEPTION
    WHEN OTHERS THEN
    RETURN 0;
    END;
    This is what I've been trying to do with no LUCK AT ALL.
    CREATE MATERIALIZED VIEW M_reserve
    TABLESPACE mviews_TS
    BUILD IMMEDIATE
    Enable query rewrite
    AS
    SELECT
    Reserve.clm_seq_id_fk as clm_seq_id,
    PID.PID_NBR AS PARENT_ID,
    PID.PID_NAME AS PID_NAME,
    ACCT.ACCT_NBR AS ACCOUNT_NBR,
    ACCT.ACCT_NAME AS ACCOUNT_NAME,
    CLAIM_1.CLM_NBR AS CLAIM_NBR,
    CLAIM_1.CLM_SUFFIX AS CLAIM_SUFFIX,
    ACCT_LOI.LOI AS LOI,
    CLAIM_1.CLM_KIND AS CLAIM_KIND,
    CLAIM_1.ST_CLM_NBR AS STATE_CLAIM_NBR,
    ACCT_LOI.RISK_NBR AS RISK_NBR,
    ACCT_LEVEL1.LEVEL_1 AS LOCATION_1,
    ACCT_LEVEL1.LEVEL_NAME AS LOCATION_1_NAME,
    ACCT_LEVEL2.LEVEL_2 AS LOCATION_2,
    ACCT_LEVEL2.LEVEL_NAME AS LOCATION_2_NAME,
    ACCT_LEVEL3.LEVEL_3 AS LOCATION_3,
    ACCT_LEVEL3.LEVEL_NAME AS LOCATION_3_NAME,
    ACCT_LEVEL4.LEVEL_4 AS LOCATION_4,
    ACCT_LEVEL4.LEVEL_NAME AS LOCATION_4_NAME,
    ACCT_LEVEL5.LEVEL_5 AS LOCATION_5,
    ACCT_LEVEL5.LEVEL_NAME AS LOCATION_5_NAME,
    SERV_OFC.SERV_OFC AS SERV_OFC,
    SERV_OFC.SERV_OFC_NAME AS SERV_OFC_NAME,
    CLAIM_1.BEN_ST AS BENEFIT_ST,
    CLAIM_1.CLM_TYPE AS CLAIM_TYPE,
    CLAIM_1.OPN_CLSD AS OPEN_CLOSED,
    SUBSTR(CLAIM_1.CLM_STAT,1,5) AS CLAIM_STATUS,
    CLAIM_1.CLMT_LST_NAME AS CLMNT_LAST_NAME,
    CLAIM_1.CLMT_FIRST_NAME AS CLMNT_FIRST_NAME,
    CLAIM_1.CLMT_MID_INIT AS CLMNT_MIDDLE_INITIAL,
    CLAIM_2.CLMT_ADDR1 AS CLMNT_ADDR1,
    CLAIM_2.CLMT_ADDR2 AS CLMNT_ADDR2,
    CLAIM_2.CLMT_CITY AS CLMNT_CITY,
    CLAIM_2.CLMT_ST AS CLMNT_ST,
    CLAIM_2.CLMT_ZIP_CD AS CLMNT_ZIP_CD,
    CLAIM_2.CLMT_CNTRY AS CLMNT_CNTRY,
    CLAIM_1.CLMT_SSN AS CLMNT_SSN,
    CLAIM_1.DT_INJ AS DATE_OF_INJURY,
    CLAIM_1.DT_RPT_EMPLR AS DATE_RPT_TO_EMPLOYER,
    CLAIM_1.DT_RECV AS DATE_RCVD_BY_GMCD,
    CLAIM_1.DT_INPT AS DATE_CLAIM_ENTERED,
    CLAIM_1.DT_CLSD AS DATE_CLAIM_CLOSED,
    CLAIM_1.DT_LST_ACTVY AS DATE_OF_LAST_ACTIVITY,
    CLAIM_1.DT_REOPN AS DATE_REOPENED,
    CLAIM_1.INJ_CAUSE AS INJ_CAUSE_CD,
    IJCA_DESC.TBL_DESC AS INJ_CAUSE_DESC,
    CLAIM_1.PART_OF_BODY AS POB_CD,
    IJPB_DESC.TBL_DESC AS POB_DESC,
    CLAIM_1.NATR AS INJ_NATURE_CD,
    IJNT_DESC.TBL_DESC AS INJ_NATURE_DESC,
    CLAIM_1.AGCY AS AGENCY_CD,
    AGAL_DESC.TBL_DESC AS AGENCY_DESC,
    CLAIM_1.MANL_CLSR_REQR AS MANUAL_CLASS_NBR,
    CLAIM_1.REC_ONLY AS RECORD_ONLY_FLAG,
    CLAIM_1.SEX AS SEX,
    NVL(DECODE(CLAIM_1.AGE,0,NULL,CLAIM_1.AGE),
    TRUNC((CLAIM_1.DT_INJ - CLAIM_1.DT_BIRTH) / 365.25))
    AS AGE,
    CLAIM_1.TIME_EMPLD AS TIME_EMPLOYED,
    CLAIM_1.DT_MED_TO_INDM AS DATE_MED_CHG_TO_IND,
    CLAIM_1.DT_INDM_TO_MED AS DATE_IND_CHG_TO_MED,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '200',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_MEDICAL,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '201',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_INDEMNITY,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '202',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_EXPENSES,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '203',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_RECOVERABLE,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '204',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_PROPERTY_DAMAGE,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '205',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_BODILY_INJURY,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '206',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_OTHER,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '207',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_CONTENTS,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '208',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_STRUCTURES,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '209',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_RECOVERY,
    CLAIM_1.DT_DEATH AS DATE_OF_DEATH,
    CLAIM_1.INJ_CLASS_CD AS INJ_CLASS_CD,
    ICLA_DESC.TBL_DESC AS INJ_CLASS_DESC,
    CLAIM_1.OCCUP_CD AS OCCUPATION_CD,
    CLAIM_1.OCCUP AS OCCUPATION_DESC,
    CLAIM_1.NATR_OF_INJ AS INJ_NATURE,
    CLAIM_1.ACCD_DESC AS ACCIDENT_DESC,
    RESERVE.DT_INPT AS DATE_RESERVE_ENTERED,
    RESERVE.TIME_INPT AS TIME_RESERVE_ENTERED,
    RESERVE.RESV_OTH_DESC AS RESV_OTH_DESC,
    ASSOCIATE.HP_LOGON AS FIELD_OFFICE,
    ASSOCIATE.USER_LST_NAME AS EXAMINER_LAST_NAME,
    ASSOCIATE.USER_FIRST_NAME AS EXAMINER_FIRST_NAME,
    ASSOCIATE.SUPV AS EXAMINERS_SUPERVISER,
    ASSOCIATE.MGR AS EXAMINERS_MANAGER,
    CLAIM_1.BUS_UNIT AS BUSINESS_UNIT,
    CLAIM_1.CLM_CLASS AS CLAIM_CLASS,
    CLAIM_1.NURSE_RESP AS NURSE_RESPONSIBLE,
    CLAIM_2.EMPL_NBR AS EMPL_NBR
    FROM
    ACCT,
    ACCT_LOI,
    PID,
    INCIDENT,
    CLAIM_1,
    CLAIM_2,
    ACCT_LEVEL1,
    ACCT_LEVEL2,
    ACCT_LEVEL3,
    ACCT_LEVEL4,
    ACCT_LEVEL5,
    RESERVE,
    SERV_OFC,
    ASSOCIATE,
    AGAL_DESC,
    IJCA_DESC,
    ICLA_DESC,
    IJNT_DESC,
    IJPB_DESC
    WHERE
    CLAIM_1.OPN_CLSD <> 'Z' AND
    PID.PID_SEQ_ID = ACCT.PID_SEQ_ID_FK AND
    ACCT.ACCT_SEQ_ID = ACCT_LOI.ACCT_SEQ_ID_FK AND
    INCIDENT.ACCT_LOI_SEQ_ID_FK(+) = ACCT_LOI.ACCT_LOI_SEQ_ID AND
    CLAIM_1.INC_SEQ_ID_FK(+) = INCIDENT.INC_SEQ_ID AND
    CLAIM_2.CLM_SEQ_ID_FK = CLAIM_1.CLM_SEQ_ID AND
    RESERVE.CLM_SEQ_ID_FK(+) = CLAIM_1.CLM_SEQ_ID AND
    SERV_OFC.SERV_OFC_SEQ_ID = CLAIM_1.SERV_OFC_SEQ_ID_FK AND
    ACCT_LEVEL1.LEVEL1_SEQ_ID(+) = CLAIM_1.LEVEL1_SEQ_ID_FK AND
    ACCT_LEVEL2.LEVEL2_SEQ_ID(+) = CLAIM_1.LEVEL2_SEQ_ID_FK AND
    ACCT_LEVEL3.LEVEL3_SEQ_ID(+) = CLAIM_1.LEVEL3_SEQ_ID_FK AND
    ACCT_LEVEL4.LEVEL4_SEQ_ID(+) = CLAIM_1.LEVEL4_SEQ_ID_FK AND
    ACCT_LEVEL5.LEVEL5_SEQ_ID(+) = CLAIM_1.LEVEL5_SEQ_ID_FK AND
    ASSOCIATE.PROCS_UN(+) = CLAIM_1.EXAMR_RESP AND
    ASSOCIATE.SERV_OFC_SEQ_ID_FK(+) = CLAIM_1.SERV_OFC_SEQ_ID_FK AND
    (AGAL_DESC.TBL_TYPE = ACCT_LOI.AGCY_CD_TBL OR
    AGAL_DESC.TBL_TYPE IS NULL) AND
    AGAL_DESC.TBL_CD(+) = CLAIM_1.AGCY AND
    ICLA_DESC.TBL_CD (+) = CLAIM_1.INJ_CLASS_CD AND
    IJCA_DESC.TBL_CD (+) = CLAIM_1.INJ_CAUSE AND
    IJNT_DESC.TBL_CD (+) = CLAIM_1.NATR AND
    IJPB_DESC.TBL_CD (+) = CLAIM_1.PART_OF_BODY ;

  • How do you write an image threshold to a file

    Hi, I use IMAQ threshold to threshold an RGB image. How do I write this image to a file? Whenever I use the IMAQ Write JPG or Write PNG vI and try to view the file with the windows image viewer all I see is a black image. Does anyone know how to save a binary image?

    If you cast it to an eight bit image and save it as a BMP or JPEG does it show up correctly? If so the problem probably lies in the fact that a 16-bit image in LabVIEW is signed, while third party viewers usually assume that it is unsigned. So rather than pixel values going from -32766 to 32767, they go from 0 to 65536. There are example programs on ni.com to get around this. One is called "Mapping a 16-bit Image to an 8-bit Image," another is called "Bit Shift an IMAQ Vision 12-bit Image and Resave for External Viewer." If you search for these titles on the ni.com search bar, you should be able to find them.
    Kyle V

  • How would you write a "wildcard" in a filefilter?

    How would you go about to have a wildcard instead of the "*" in the following filefilter;
              File[] files = new File("./resultat/resultat_" + "*" + "_" + index[0]).listFiles (new FileFilter () {
                    public boolean accept (File file) {
                        return ! file.isDirectory ();
              });All help appriciated
    - Karl XII

    Shouldn't "a*" accept all files that begins with "a" and ends with whatever?No. "*" in regexp is a not a wildcard match. Instead it matches one or more instances of the preceeding
    value.
    Therefore "a*" will match "a", "aa", "aaa", "aaaa" etc but will not match anything which does not end in
    an "a".
    The following might help you out. (not the most elegent expression but it will do
    import java.util.regex.*;
    public class RegExp{
      public static void main(String[] args) {
      Pattern p = Pattern.compile("a*b");     
      Matcher m = p.matcher("aaaab");     
      System.out.println(m.matches());                    
      // interesting bit here
      // match one or more occurances of any characters in the ASCII charset  (the \\p{ASCII}* bit   
      p = Pattern.compile("hello_\\p{ASCII}*_b");     
      m = p.matcher("hello_wibble_b");     
      System.out.println(m.matches());
    }

  • How can you write over the other JTablecells while putting in information

    like windows excel when you write in a cell and you get to the border everything covers the other cells... when you press enter the string is in the textfield. But with the default settings of JTable or is it the DefaultTableEditor or the DefaultTableRenderer i don't know, when you write someting in a cell and get to the border everything is pushed to the left...i don't like that...
    Can someone help me here?
    thanks in advance

    Hello Tim,
    thanks for your response. Meanwhile I found out, that in fact things work fine. I "tested" the outputfile in opening it with the Notepad editor. That was not the proper way to do it. Making a file dump, I saw that everything was alright. So if one wants to work on such a file with the editor, one should use the Writer classes.
    Regards
    Joerg

  • How do you write a file involving the changes in application engine?

    Hi Guys,
    I have a requirement in app engine.
    I have to update a table based on the changes occured in other tables.
    I have to show the user old value and new updated value in the log file how do I write a file for below fields?
    Old Value: Name:Rock|SSN:0000000|Address:675478
    New Value    Name: Roger|SSN:0000000|Address:908765
    Thanks and regards,

    Hi ,
    My Requirement is Quite different here.
    I cannot use CI.i have to implement in app engine.
    Below explained:
    I have data coming from abc table and populating into xyz table.
    So if any field in abc gets changed which is extracted and populated in the xyz table.I have to show the old field value of xyz and the new field values of abc which I am going to insert into the xyz.
    My log file should have both the values.
    how do I write both the values and update it:
    say I have value from abc.id=12 and xyz.id=12
    when we update abc.id=13 and xyz.id=14
    I have to print
    old record details:
    id=12
    New record details:
    id=13
    somerthing of above sort
    Thanks and Regards

  • How do you write a VI that receives a voltage from Labjack U12?

    I'm using LJ U12 as my DAQ, on my laptop i've plugged in two U12, and after writing one VI,  i'm able to control a voltage 1-5V to one of my U12 (say U12A), which is able to recieve it, and then i've wired the analog output AO0 to the other U12's (say U12B) AI0. Now i would like to have a separate VI for U12B that is able to recieve and display the voltage from U12A, how do you go about writing this separate VI.
    So basically i'm using one computer and forming a loop, the need of doing so is to simulate U12B as my hardware (e.g control valve) and U12A as my console (e.g computer)
    With Regards
    Wormwood
    *Note: as attached is the VI that i've written to give voltages.
    Attachments:
    Labjack AO.vi ‏17 KB

    First, if you have not already, check out the following topic from the LabJack forum about getting started with the U12 in LabVIEW:
    http://www.labjack.com/forums/index.php?showtopic=84
    The first thing you should do is run our sample application LJconfig.exe, and assign each U12 a unique local ID.  Say #2 and #3.  Then you pass a 2 or 3 for the IDNum parameter for each function to specify which U12 you are talking to.
    The attached example uses the easy functions with IDNum = -1, which means first found.  You would just replace the -1 with a 2 or 3.
    Attachments:
    e function example.vi ‏41 KB

  • How do you write to a 3D array?

    I know this is probably a very simple questions, but for some reason I can not think of how to write to a 3D array. The application that I am going to use this for is that I have multiple graphs with x and y data points, and I want to be able to write all the graphs with their data points to a 3D array instead of having a large amount of 2D arrays. My main goal is to be able to use this 3D array with a graph so that I can click through all the graphs after I have done my measurements. I appreciate anyone that can give me help on this matter.

    3D array handling is not much different from 2D, you just have another coordinate to specify - "page" (row, column, page). Create a 3D array constant and wire it to e.g. the replace function and it will automatically scale up to show you the index and length options involved...
    PS. If you have XY arrays why not just have a 1D array of XY sets (as one would use for multiplot XY graphs)?You could even write the whole array to a graph (save you the extraction operations) and then choose to see whatever combination you would like by setting the color of the plots you want to hide to transparent.
    MTO

  • How can you write TABs in a file?

    Hello everbody,
    suppose you create a simple textfile "Input.txt" in copying the following two lines:
    ABCD
    123
    The code below works fine in creating (on Windows) an ANSI file "Output.txt". Now
    remove the comment slashes in the while loop, and compile and run the program
    again. The output file this time will be a Unicode file with Devanagari
    characters, as two bytes are interpreted as one char. Can anybody tell me why,
    and how it can be prevented?
    import java.io.*;
    class Anwendung
      public static void main(String[] args)
    //    final byte TAB=9; // no difference.
        final int TAB=9;
        try
        { FileInputStream eingabe = new FileInputStream("Input.TXT");
          FileOutputStream ausgabe = new FileOutputStream("Output.TXT");
          int zeichen;
          while ((zeichen=eingabe.read()) != -1)
          { ausgabe.write(zeichen); // only the low byte is taken from the int.
         ausgabe.write(TAB);
          eingabe.close();
          ausgabe.close();
        catch(Throwable e)
        { System.out.println("Error: "+e);
    }Regards
    Joerg

    Hello Tim,
    thanks for your response. Meanwhile I found out, that in fact things work fine. I "tested" the outputfile in opening it with the Notepad editor. That was not the proper way to do it. Making a file dump, I saw that everything was alright. So if one wants to work on such a file with the editor, one should use the Writer classes.
    Regards
    Joerg

  • Please HELP ASAP! I/O Command Line, How do you write them? System.in?

    I'm trying to create a program where the user can enter a year and gets the date of Easter on that year he/she entered. So far i've implemented the Easter class which contains the methods for getting the day and month of Easter, but I'm trying to write the main class which is kind of tricky for me. The main class is supposed to be the one asking the user for the year. Except I don't even know what you have to write. I did a bit of research and eventually found something like this: " InputStreamReader cin = new InputStreamReader(System.in)" I realize that that is a constructor and that cin is actually a variable supposed to hold whatever the user inputs. Except I just want to make sure if that's kind of the guidelines on how to make it so that the user can enter something back. Also, I want the user to enter a year- so in other words an int type. Here's why:(The Implemented Class for Easter)
    public void Year()
    //Method body
    public int getEasterSundayMonth(int y)
    //Method Body
    public int getEasterSundayDay(int y)
    //Method Body
    Yea I want to make it so that the user's input is "int y" that way I can perform my methods in order to give them back the day and month Easter is on. So my 2 questions are on how to write the code so I can get a user's input, and on how to substitute the user's input into the variable "y" I just started learning Java about 3 weeks ago as a Sophmore in high school, so it's a bit difficult for me. Thanks in advance.

    You should really work on expressing yourself more succinctly.
    shadowpal2 wrote:
    I did a bit of research and eventually found something like this: " InputStreamReader cin = new InputStreamReader(System.in)" I realize that that is a constructor and that cin is actually a variable supposed to hold whatever the user inputs.You misunderstood. System.in is used to read standard input to the Java process. If you don't know what "standard input" is: basically it's stuff that you could type at the console when you're running the program, but it could be file content depending on how you invoke the program.
    InputStreamReader is a class that takes that stream of input bytes and turns it into a stream of characters. It doesn't really hold anything.
    Except I just want to make sure if that's kind of the guidelines on how to make it so that the user can enter something back.It's one way of many of getting user input. Actually it's only part of one common idiom for getting user input.
    Also, I want the user to enter a year- so in other words an int type. Just use a java.util.Scanner.
    Yea I want to make it so that the user's input is "int y" The user's input is always going to be characters. Scanner has methods to automatically turn input into other types. If you use something else (like the common idiom involving InputStreamReader) you'd need to convert the Strings you read into ints by hand, which isn't hard but why do it if Scanner does it for you?
    Read the docs for java.util.Scanner.

  • How do you write a string of UTF-8 that's an image to a folder

    I have something like this
    ?PNG
    �?�?}?�?soo&#65533;{]o?��z&#65533;F?�?�a�51>dc�A�&?E??<�??g?+???n%?�??z&#65533;���Ou/?0?�[??Zq?�sZ??�]?
    that is a UTF-8 string and I want to write it to a folder so I can cache the image for later use. How do I do this?

    2dor wrote:
    I have something like this
    ?PNG
    �?�?}?&#131;?soo&#65533;{]o?��z&#65533;F?&#147;?&#139;a�51>dc&#132;A�&?E??<&#149;??g?+???n%?&#149;??z&#65533;&#153;��Ou/?0?&#145;[??Zq?�sZ??&#159;]?
    that is a UTF-8 string and I want to write it to a folder so I can cache the image for later use. How do I do this?It's almost certainly NOT a UTF-8 string, it's binary that cannot be safely represented as a String. Image data is not string-able. Read it in as bytes, write it out as bytes, and you should be good to go.
    For specifics on creating and writing to "folders", look at java.io.File and friends. Pay attention to File.mkdir(), for example.
    Grant

  • How do you write today in idoc script

    Hi,
    I am trying to compare date. Can anyone help me on how to write today.
    Eg: <!--$if xEventEnd-->
    What I'm trying to do is if xEventEnd is less than today, do not display content.
    Thank you,

    Can someone tell me how to compare date?
    <!--$if xEventEnd >= dateCurrent()-->
    xEventEnd is the meta data field for end date.
    Am I doing something wrong in this?
    Thank you,

Maybe you are looking for

  • Ralink 2860 Wireless Card

    Hello, with my Ralink 2860 my wireless device has always been identified as ra0 instead of wlan0 and it worked fine. Well with a recent kernel update, my device got switched to being identified as wlan0, and now I have problems connecting to networks

  • Do you guys remember any of the bugs specific to 9.2.0.8?

    One of our client is thinking of moving to Oracle Version 9.2.0.8. Do you guys remember any of the bad bugs that you've encountered in 9.2.0.8?

  • Configuration of Thread Pool for CQ's Web Container

    I am trying to detrmine whether there is any specific configuration for tuning the web container thread pool for CQ. The only configuration I observe is OSGi 's Apache Sling Event Thread Pool but tuning this does not directly correlate to the thread

  • E-mail Verification

    So, I was applying for an online job that requires you to have a paypal. It asked for my email that I use for paypal but then said that the email I typed in was not verified to a paypal account. I only have one email for paypal, yes I double checked

  • Keyboard Navigation - migrating from Windows to Apple

    In Windows I used the "Control Home or End" command a lot - particularly in Excel especially as I use huge worksheets and require to get to the top or bottom quickly. On my MacBook Pro there is no button called "Home" or "End". Can anyone assist - wh