Writing in this format "9999999-99" without write the symbol "-".

I have a text field that i want to writing in this format "9999999-99" without write the symbol "-" (see image 1).
What i want is to typing the first numbers and by him self skip the next character who is the symbol "-" and type the last two numbers.
The first look before write anything is like the the image 1. With the symbol "-" stable and read only.
After that i want the number to shown it as barcode below (see image 2).
Image 1
Image 2
Thanks
KE.

Hi Justin,
Can you be more specified? How to add a calculate event on a barcode field? Where i have to add this (this.rawValue = lanumber.formattedValue;) or this (this.rawValue = firstSeven.rawValue + "-" + lastTwo.rawValue;)?
When i add the edit pattern "999999999" i get an error which have to add another one "9" to be equal with the comb field (see image below).
Thanks
KE.

Similar Messages

  • How to format my computer without affecting the software installed?

    how do I format my computer without affecting the software installed?

    You can, but if you don't format the drive using the Zero Data option all your personal files will still be accessible to someone who knows how to gain access to them. If that's not a concern then here are two options (easy and not so easy):
    The Easy Way
    1. First, boot from your Tiger DVD, select your language and click on the Continue button, then select Disk Utility from the Utilities menu, select your boot hard drive, go to the First Aid tab, and click the button for Repair Disk. Repeat this until no trouble is found. Then click on the Repair Permissions button. Then quit DU, return to the installer and shutdown the computer for a couple of minutes.
    This will assure that the drive is OK and permissions are OK.
    2. Next, boot to single user mode by restarting and after the chime press and hold down the COMMAND-S keys until a black screen with white type appears.
    3. At the prompt, type the following commands pressing return after each command line:
    /sbin/fsck -yf
    mount -uw /
    rm /private/var/db/.AppleSetupDone
    shutdown -r now
    The second-to-last command above will cause OS X to think that the operating system is newly installed, and when you reboot, it will send you to the startup wizard where you can start a new user without reinstalling.
    The Not So Easy Way
    Follow these instructions step by step to prepare a Mac for sale:
    First, back up the data:
    1) Shut down all Virtual PCs. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    2) Clone to an external drive using Carbon Copy Cloner.
    Next, prepare the machine for the new buyer:
    3) Deauthorize the computer in iTunes! Deauthorize both iTunes and Audible accounts.
    4) Remove Open Firmware passwords
    5) Turn the brightness full up and volume nearly so.
    Install a fresh OS:
    6) Insert the OS X install CD/DVD.
    7) Restart the computer while holding down the C key to boot from the CD/DVD.
    8) Run Disk Utility from the file menu and erase the internal hard drive (optionally zero all data).
    9) Install OS X.
    10) Reboot the computer.
    11) From the welcome screen, you can skip the registration step by typing command-Q.
    12) When prompted, create an account (it will be an admin account).
    13) From your new admin account, configure networking.
    14) Then use Software Update to bring your system and all of it's applications up to date.
    15) From Disk Utility, repair permissions on the new volume.
    Now delete the account you just created:
    16) Boot from a different volume (e.g. a firewire drive, if available)
    17) Clean up the image using the following terminal commands:
    prompt> rm /Volumes/<imagevol>/var/db/BootCache.playlist
    prompt> rm /Volumes/<imagevol>/var/db/volinfo.database
    prompt> rm -r /Volumes/<imagevol>/var/vm/swap*
    18) Now you can get rid of the admin account you used to set up the machine Use the terminal:
    prompt> nicl -raw /Volumes/<imagevol>/var/db/netinfo/local.nidb -delete /users/<admin>
    prompt> rm -r /Volumes/<imagevol>/Users/<admin>
    prompt> rm /Volumes/<imagevol>/var/db/.AppleSetupDone
    19) Shut down and ship it to your buyer. When they get it, it will boot to the Welcome screen just like a factory Mac, except that it's better because it's completely up to date.

  • Hi at the moment my ipod is on manual sync mode. Is there any way of changing this to auto-sync without losing the music on my ipod or library? Possibly more importantly is there a way I can transfer the ratings from my ipod onto my i-tunes?

    Hi at the moment my ipod is on manual sync mode. Is there any way of changing this to auto-sync without losing the music on my ipod or library? Possibly more importantly is there a way I can transfer the ratings from my ipod onto my i-tunes?
    This is so I can delete music from my ipod knowing its rated on my i-tunes so I can then see later if I want to re-add it based on its rating
    Thanks

    Is there any way of changing this to auto-sync without losing the music on my ipod or library?
    Unfortunately there is not.
    Possibly more importantly is there a way I can transfer the ratings from my ipod onto my i-tunes?
    Not without the help of third party software such as this one:
    http://www.copytrans.net/copytrans.php
    B-rock

  • ICloud you have the ability to NOT format phone numbers of contacts; this ability is not available on the contacts of iPhone. If I set-up a phone number in iCloud with NO parenthesis, ex. 123- 456-7899, then this format should be available on the iPhone

    In iCloud you have the ability to NOT format phone numbers of contacts; this ability is not available on the contacts of iPhone. If I set-up a phone number in iCloud with NO parenthesis, ex. 123- 456-7899, then this format should be available on the iPhone contact.

    That is correct is doesn't. Standardized formatting of phone numbers in the iOS app is more important because it supports contact from a variety of locations (gmail, hotmail, etc.). iCloud doesn't (not directly).

  • Why am I getting this error message: Unable to write the email to the mailbox. Make sure the file system allows you write privileges, and you have enough disk s

    I am getting this error message, just starting today: Unable to write the email to the mailbox. Make sure the file system allows you write privileges, and you have enough disk space to copy the mailbox. I have tried several solutions (cleaning out my inbox, compacting folders, rebooting, checking through the webmail side), all to no avail, Can anyone help?

    which os do you have?

  • How can I write the symbol "greater or equal" in a string or a label?

    Hi,
    I have tried using the "symbol" police to create the greater or equal symbol but it doens't work.
    Does anybody know how to do this?
    Thanks,
    User
    Solved!
    Go to Solution.

    The only way I see to do it, is to type in the appropriate character code (Alt-0179, using the numeric keypad), then highlighting the single character (in most fonts it is the superscript 3), then changing the font to 'Symbol'.  The rest of the characters in the string will remain in the same font as before, only the highlighted character will change.
    Randall Pursley

  • TS1382 my ipod will not play any format of film i have tried mp4 and .mov and it says this format not supported what is the problem

    i have an ipod classic and i have tried to put films on but every format i try it keeps saying thei format not supported i have tried mp4 and .mov and it will not take it anyone got any suggestions on what format to use and the best way to convert films

    If these problem videos are already stored in your iTunes library, try using the iTunes built in convert to convert the file to an even friendlier iPod format.  To use it, highlight the video in iTunes and choose Advanced -> Create iPod or iPhone version from the drop down menu.  When the conversion process has completed, try syncing the new version over to your iPod Classic.
    B-rock

  • Can Revel upload this Format MPEG HDTV 1080p

    Can Revel upload this Format MPEG HDTV 1080p

    Hi Peter,
    The following link will give you a list of supported video formats:
    FAQ: Which file formats does Revel support?
    Glenyse

  • How to write the JTables Content into the CSV File.

    Hi Friends
    I managed to write the Database records into the CSV Files. Now i would like to add the JTables contend into the CSV Files.
    I just add the Code which Used to write the Database records into the CSV Files.
    void exportApi()throws Exception
              try
                   PrintWriter writing= new PrintWriter(new FileWriter("Report.csv"));
                   System.out.println("Connected");
                   stexport=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                   rsexport=stexport.executeQuery("Select * from IssuedBook ");
                   ResultSetMetaData md = rsexport.getMetaData();
                   int columns = md.getColumnCount();
                   String fieldNames[]={"No","Name","Author","Date","Id","Issued","Return"};
                   //write fields names
                   String rec = "";
                   for (int i=0; i < fieldNames.length; i++)
                        rec +='\"'+fieldNames[i]+'\"';
                        rec+=",";
                   if (rec.endsWith(",")) rec=rec.substring(0, (rec.length()-1));
                   writing.println(rec);
                   //write values from result set to file
                    rsexport.beforeFirst();
                   while(rsexport.next())
                        rec = "";
                         for (int i=1; i < (columns+1); i++)
                             try
                                    rec +="\""+rsexport.getString(i)+"\",";
                                    rec +="\""+rsexport.getInt(i)+"\",";
                             catch(SQLException sqle)
                                  // I would add this System.out.println("Exception in retrieval in for loop:\n"+sqle);
                         if (rec.endsWith(",")) rec=rec.substring(0,(rec.length()-1));
                        writing.println(rec);
                   writing.close();
         }With this Same code how to Write the JTable content into the CSV Files.
    Please tell me how to implement this.
    Thank you for your Service
    Jofin

    Hi Friends
    I just modified my code and tried according to your suggestion. But here it does not print the records inside CSV File. But when i use ResultSet it prints the Records inside the CSV. Now i want to Display only the JTable content.
    I am posting my code here. Please run this code and find the Report.csv file in your current Directory. and please help me to come out of this Problem.
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.table.*;
    public class Exporting extends JDialog implements ActionListener
         private JRadioButton rby,rbn,rbr,rbnore,rbnorest;
         private ButtonGroup bg;
         private JPanel exportpanel;
         private JButton btnExpots;
         FileReader reading=null;
         FileWriter writing=null;
         JTable table;
         JScrollPane scroll;
         public Exporting()throws Exception
              setSize(550,450);
              setTitle("Export Results");
              this.setLocation(100,100);
              String Heading[]={"BOOK ID","NAME","AUTHOR","PRICE"};
              String records[][]={{"B0201","JAVA PROGRAMING","JAMES","1234.00"},
                               {"B0202","SERVLET PROGRAMING","GOSLIN","1425.00"},
                               {"B0203","PHP DEVELOPMENT","SUNITHA","123"},
                               {"B0204","PRIAM","SELVI","1354"},
                               {"B0205","JAVA PROGRAMING","JAMES","1234.00"},
                               {"B0206","SERVLET PROGRAMING","GOSLIN","1425.00"},
                               {"B0207","PHP DEVELOPMENT","SUNITHA","123"},
                               {"B0208","PRIAM","SELVI","1354"}};
              btnExpots= new JButton("Export");
              btnExpots.addActionListener(this);
              btnExpots.setBounds(140,200,60,25);
              table = new JTable();
              scroll=new JScrollPane(table);
              ((DefaultTableModel)table.getModel()).setDataVector(records,Heading);
              System.out.println(table.getModel());
              exportpanel= new JPanel();
              exportpanel.add(btnExpots,BorderLayout.SOUTH);
              exportpanel.add(scroll);
              getContentPane().add(exportpanel);
              setVisible(true);
          public void actionPerformed(ActionEvent ae)
              Object obj=ae.getSource();
              try {
              PrintWriter writing= new PrintWriter(new FileWriter("Report.csv"));
              if(obj==btnExpots)
                   for(int row=0;row<table.getRowCount();++row)
                             for(int col=0;col<table.getColumnCount();++col)
                                  Object ob=table.getValueAt(row,col);
                                  //exportApi(ob);
                                  System.out.println(ob);
                                  System.out.println("Connected");
                                  String fieldNames[]={"BOOK ID","NAME","AUTHOR","PRICE"};
                                  String rec = "";
                                  for (int i=0; i <fieldNames.length; i++)
                                       rec +='\"'+fieldNames[i]+'\"';
                                       rec+=",";
                                  if (rec.endsWith(",")) rec=rec.substring(0, (rec.length()-1));
                                  writing.println(rec);
                                  //write values from result set to file
                                   rec +="\""+ob+"\",";     
                                   if (rec.endsWith(",")) rec=rec.substring(0,(rec.length()-1));
                                   writing.println(rec);
                                   writing.close();
         catch(Exception ex)
              ex.printStackTrace();
         public static void main(String arg[]) throws Exception
              Exporting ex= new Exporting();
    }Could anyone Please modify my code and help me out.
    Thank you for your service
    Cheers
    Jofin

  • How to make the bank clearing entry in SAP without uploading the Bank statement

    Hi All
    I am working on a project where we use SAP FSCD for making payment out for Claims . Now when we make the claims payout we clear the open items in FSCD using the FPYI run ( Payment run) and produce an output file. Now the payment run creates the subledger entries. We will not receive any bank statment to FSCD for making the bank clearing entries in the GL accounts. Is there a way I can trigger this bank clearing entry without receiving the bank statement and uploading it...
    Thanks and Regards
    Varadarajan B

    Hi,
    You can do this in similar way like F-02 (transfer) & F-03 (clear). You can use BDC for this and schedule this as a background job.
    Your question is more related to FI. Check this approach with your FI consultant and for any other impact in FI.
    Better to post such queries in FI community as you might get better answers / solutions than out here.
    Regarding your requirement: By not receiving bank statement for payouts... it seems that the bank is going to process all the payouts with 100% success rate which is an ideal case and somewhat unusual.
    Thanks

  • Why can I only write the samples to read during continuous acquisition?

    I am acquiring analog voltage signals and attemting to write to a text file when condition is true, thus there is continuous acquisition. However, the written files only contain 100 samples (the size of my buffer).. I need my files to read samples until the while loop is stopped. How can I go abotu doing this?
    Thanks,
    TFlax
    Solved!
    Go to Solution.

    I have been able to make this work, but  it only writes the buffer size. I am new to labview and programming in general and I have tried to make a producer and consumer design however I dont seem to understand the concept properly and fail to run my program properly... So here's my code before any attempt to producer/consumer design which only writes 100 samples to file. Advice on how to modify it to producer/consumer because Im not even sure where to start.
    Thanks,
    Tflax
    Attachments:
    Test_Signals_Dec17.vi ‏745 KB

  • Using filestream without opening the file

    Sir
    I am trying to save a file to the SQL database using the following code. The code runs successfully but the file opens up during the process.
    Dim fs As FileStream
    fs = New FileStream(strFileName, FileMode.Open, FileAccess.Read)
    Dim docByte As Byte() = New Byte(fs.Length - 1) {}
    fs.Read(docByte, 0, System.Convert.ToInt32(fs.Length))
    fs.Close()
    I do not want the file to open. Any suggestion. Please help me
    Regards
    Manoj

    Sir
    I am trying to save a file to the SQL database using the following code. The code runs successfully but the file opens up during the process.
    Dim fs As FileStream
    fs = New FileStream(strFileName, FileMode.Open, FileAccess.Read)
    Dim docByte As Byte() = New Byte(fs.Length - 1) {}
    fs.Read(docByte, 0, System.Convert.ToInt32(fs.Length))
    fs.Close()
    I do not want the file to open. Any suggestion. Please help me
    Regards
    Manoj
    I'll also suggest that you read the file in inside a Using block and you check to be sure that the file's size isn't too large:
    Using fs As New IO.FileStream(filePath, _
    IO.FileMode.Open, _
    IO.FileAccess.Read)
    If fs.Length <= Int32.MaxValue Then
    Dim bytes(CInt(fs.Length - 1)) As Byte
    fs.Read(bytes, 0, CInt(fs.Length))
    ' Now do something with the byte array
    ' just read in. For this example I'll
    ' just write the file to my desk
    Dim desktop As String = _
    My.Computer.FileSystem.SpecialDirectories.Desktop
    Dim fileName As String = _
    IO.Path.GetFileName(filePath)
    My.Computer.FileSystem.WriteAllBytes(IO.Path.Combine(desktop, _
    fileName), _
    bytes, _
    False)
    Stop
    End If
    End Using
    The test is done because of this: The .Length property of a FileStream is a type Long but the .Length
    property of an array is an integer.
    Still lost in code, just at a little higher level.

  • What is wrong with this program it keeps telling me the file doesn't exist?

    this program is supposed to write the file so why does it need the file to already exist?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.ArrayList;
    import java.util.Scanner;
    public class NewClass implements ActionListener{
        static List list = new List();
        static TextField input = new TextField(20);
        static Button submit = new Button("Submit");
        static Frame f = new Frame("RealmList editor");
        static File file = new File("/Applications/World of Warcraft/realmlist.wtf");
        static Label status = new Label("");
        static Button selected = new Button("Change to Selected");
        static File config = new File("/Applications/RealmLister/config.txt");
        static File dir = new File("/Applications/RealmLister/");
        public static void main(String[] args) {
            f.setLayout(new BorderLayout());
            f.add(list, BorderLayout.CENTER);
            Panel p = new Panel();
            p.add(input);
            p.add(submit);
            p.add(selected);
            f.add(p, BorderLayout.NORTH);
            f.add(status, BorderLayout.SOUTH);
            new NewClass();
            f.setSize(500,500);
            f.setVisible(true);
            try {
                loadConfig();
            } catch(Exception e) {}
            f.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent we) {
                    try {
                      writeConfig();
                      System.exit(0);
                    } catch(Exception e) {
                       status.setText("Error: config couldn't be written!("+e+")");
        public NewClass() {
            submit.addActionListener(this);
            input.addKeyListener(new KeyAdapter() {
                public void keyPressed(KeyEvent e) {
                    if(e.getKeyCode() == KeyEvent.VK_ENTER) {
                    try {
                    editRealmlist(input.getText(), true);
                    input.setText("");
                 catch(Exception ex) {
                   status.setText("Error: "+e);
            selected.addActionListener(this);
        public void actionPerformed(ActionEvent e) {
            if(e.getSource() == submit) {
                try {
                    editRealmlist(input.getText(), true);
                    input.setText("");
                } catch(Exception ex) {
                   status.setText("Error: "+e);
                   wait(3000);
                   status.setText("");
            if(e.getSource() == selected) {
                try {
                    editRealmlist(list.getSelectedItem(),false);
                } catch(Exception ex) {
                    status.setText("Error: "+e);
                    wait(3000);
                    status.setText("");
        public static void loadConfig() throws Exception{
            if(config.exists()) {
                Scanner scan = new Scanner(config);
                ArrayList<String> al = new ArrayList<String>();
                while(scan.hasNext()) {
                    al.add(scan.nextLine());
                for(int i = 0; i < al.size(); i++) {
                    list.add(al.get(i));
        public static void writeConfig() throws Exception{
            FileWriter fw = new FileWriter(config);
            dir.mkdir();
            config.mkdirs();
            String temp = "";
            for(int i = 0; i < list.getItemCount(); i++) {
                temp += list.getItem(i)+"\n";
            fw.write(temp);
            fw.flush();
            System.gc();
        public static void editRealmlist(String realm, boolean addtoList) throws Exception{
            FileWriter fw = new FileWriter(file);
            fw.write("set realmlist "+realm+"\nset patchlist us.version.worldofwarcraft.com");
            fw.flush();
            status.setText("Editing RealmList.wtf Please Wait...");
            Thread.sleep(3000);
            status.setText("");
            System.gc();
            if(addtoList)
                list.add(realm);
        public void wait(int time) {
            try {
                Thread.sleep(time);
            catch(Exception e) {}
    }

    Erm, you should call mkdirs() on a File object that represents a directory.

  • GR done without mention the Storage location

    PO created and released without detremine the stroge location , then the GR for this PO is posted without detremine the storage location also my question is
    1- where is the stock now it is hidden
    2- how can i return the stock to certain storage location
    regards,

    >
    wello76 wrote:
    > thank you for your quick answar
    >
    > i have one more question
    >
    > is it any way to assgin the storage location while making the GR or the only way is to mention the storage location at the PO itself before make the GR
    >
    > Regads,
    Well if the PO is account assigned then you cann't maintain any storage location (please check your PO whether it is account assigned)
    Now if it is not account assigned i.e. normal PO then if you don't fill the storage location in the PO then in MIGO at where tab the storage location field will remain blank & you have to maintain the same in MIGO...otherwise if you maintain the storage location in PO then there is no need to maintain it again in MIGO (as it will be prefilled from PO)....you can check the stock in that scenario in MB51 also
    Regards,
    Indranil

  • How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?

    How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?
    I have been using Windows to write files to my 1TB WD external hard drive and I do not want to format to loose the files capacity of around 500GB
    Someone, Please help

    Hi Allen,
    Is there any way to store the back up to Mac and restore after formating?

Maybe you are looking for

  • HP Z3200 PS printer will not print from Photoshop CC

    HP Z3200 PS printer is configured with latest drivers for Mac OSX 10.10.  Computer reads/sees the Z3200,  but will not display print settings dialogue box n Photoshop CC and goes straight to printing a blank sheet. Computer prints successfully to Z32

  • Remote access via ftp

    Hi. I am trying to set up remote access to my mac so I can upload files to it remotely from a PC. I want the simplest free solution as I simply want occasional access to back up files from my work PC to my home mac. I have got 90% of the way, but fal

  • After downloading ios7 to ipad it asked for a passcode which I never set up and now it is disabled help!

    help after downloading ios7 to my ipad it was locked with a passcode which I did not set and after trying various codes it is now disabled- can anyone help?

  • Serious problem with LaCie HDD

    I have a 160GB LaCie external drive. During a backup (with SilverKeeper) the power was switched off and my LaCie does not mount under MacOSX. I tryed to repair it with a DiskUtility but without success. The message is: Checking HFS Plus volume. Check

  • Swtiching between vdpau output and "*" output creates corrupted video

    Hey all, when i switch from using vdpau in mplayer to any other video output in any other video player (xine, gstreamer, vlc, etc), i get corrupted video playback. it becomes choppy and my CPU gets eaten up. The only way to fix it is to restart X. My