How to delete all data in a file

Hello.
I am trying to clear all the data from a file that will be continually replaced with a file of the same name with new data in it.  The goal is to delete the file while going through a while loop.  The problem I am having is with a dialog box popping up asking me if I want to replace the existing data.  I don't want a dialog box to pop up, just for the loop to continuosly delete any information (or to write a null string into the file) while it is looping, even if the file is empty.  At some point, the file will be replaced by actually data, which will cause a case structure to react and trigger the program to begin.
Attached is the file.
Thanks for the help!
Tyler
Attachments:
Tyler.zip ‏658 KB

Hello Tyler,
now I had a look into your vi and made some comments on it.
If your vi contains only LV functions you don't need to save as llb with all subVI from lv.lib!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Attachments:
NewMethod.vi ‏90 KB

Similar Messages

  • How to delete all data in all tables in one time ?!

    1 CREATE OR REPLACE PROCEDURE delete_all_data
    2 IS
    3 v_statement VARCHAR2 (200);
    4 BEGIN
    5 FOR i IN (SELECT *
    6 FROM user_tables)
    7 LOOP
    8 v_statement :=
    9 'delete table ' || i.table_name ;
    10 EXECUTE IMMEDIATE v_statement;
    11 END LOOP;
    12 commit;
    13* END;
    SQL> /
    Procedure created.
    SQL> exec delete_all_data
    BEGIN delete_all_data; END;
    ERROR at line 1:
    ORA-00903: invalid table name
    ORA-06512: at "DE2.DELETE_ALL_DATA", line 10
    ORA-06512: at line 1
    I made the previous code , but it's didn't work with me .... any help for this problem please ?!
    I'm just reminder ..... all what I need ,that delete all data in all tables in one time only .
    I'm waiting for the answer ..... and thanks in advance

    create or replace
    FUNCTION TRUNC_SCHEMA RETURN NUMBER AS
    CURSOR select_table IS SELECT TABLE_NAME AS TNAME FROM USER_TABLES ORDER BY 1;
    sTableName Varchar2(128);
    sUser Varchar2(128);
    sConstraintName Varchar2(128);
    plsql_block Varchar2(512);
    BEGIN
    SELECT USER INTO sUser FROM DUAL;
    IF ((sUser='SYSTEM') OR (sUser='SYS')) THEN
    RETURN 1;
    END IF;
    EXECUTE IMMEDIATE 'PURGE RECYCLEBIN';
    -- DISABLE table's constraints
    FOR C1 IN (select CONSTRAINT_NAME, TABLE_NAME from user_constraints where STATUS = 'ENABLED' AND CONSTRAINT_TYPE in ('P','R') ORDER BY R_CONSTRAINT_NAME) LOOP
    sConstraintName := C1.CONSTRAINT_NAME;
    sTableName := C1.TABLE_NAME;
    plsql_block := 'ALTER TABLE ' || sTableName || ' DISABLE CONSTRAINT ' || sConstraintName;
    EXECUTE IMMEDIATE plsql_block ;
    END LOOP;
    FOR D IN select_table LOOP
    --get table name
    sTableName := D.TNAME;
    -- clear table
    plsql_block := 'TRUNCATE TABLE ' || sTableName;
    EXECUTE IMMEDIATE plsql_block ;
    END LOOP;
    -- ENABLE table's constraints
    FOR C2 IN (select CONSTRAINT_NAME, TABLE_NAME from user_constraints where STATUS = 'DISABLED' AND CONSTRAINT_TYPE in ('P','R') ORDER BY R_CONSTRAINT_NAME desc) LOOP
    sConstraintName := C2.CONSTRAINT_NAME;
    sTableName := C2.TABLE_NAME;
    plsql_block := 'ALTER TABLE ' || sTableName || ' ENABLE CONSTRAINT ' || sConstraintName;
    EXECUTE IMMEDIATE plsql_block ;
    END LOOP;
    RETURN 0;
    EXCEPTION WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR: ' || SQLERRM);
    RETURN 1;
    END TRUNC_SCHEMA;
    /

  • BPC 7.5NW : How to delete all data in application

    Hi,
    I need to delete transactional data in an planning application. I've run a "clear" and I clears all the data, but unfortunately, it's "only a delta" delete. So there are still several datapackage request in my application. Of course the sum is zero, but there are still lot's of data.
    How to I do a full delete af all transactional data and request ?
    i need this in order to delete all masterdata and reload it.
    Thank you,
    Joergen Dalby

    Hi,
    Easiest way of complete deletion of transactional data from application is from back end.
    Login into back end(BPC BW) via logon pad
      --Goto tcode RSA1 and click on infoproviders tab
       --Search for Application (from where you want to delete data)
       --Select the application and change from planning mode to data load mode from context menu
       --Select delete data from context menu
         --Select No to keep dimension data
       --Once data deleted from application(infocube) change back planing mode(from context menu)
    hope it works..
    regards,
    Raju

  • How to delete all projects and accompanied files from Adobe Premeiere Elements 13

    I would like to delete all projects and files and start anew, but I cannot find a clear enough instruction how to do it. Please help'

    vitprod
    Same other versions as well.
    There is no one delete button that wipes away the project file (.prel) and the project's assets. You need to go to the save locations of the project file (.prel) and its assets and delete
    each one by one wherever they are saved UNLESS you pre-plan and, before the project is created, set up a particular project so that the project file with assets goes to its own folder instead of each component of the project going into a common place for Premiere Elements files and folder where you have to pick out the materials for deletion one by one by name.
    Answers
    Default type situation
    If left at defaults and if your Premiere Elements 13 is running on Windows 7, 8, or 8.1 64 bit, go to Libraries/Documents/Adobe/Premiere Elements/13.0 and, in the 13.0 Folder, delete standalone files with your target project's name and delete files with your target project's name in the folders found in the 13.0 Folder.
    Plan Ahead
    Edit Menu/Preference/Scratch Disks - Set all to Same As Project.
    Create a new folder at a hard drive location of choice.Then point the project file to that folder for the Save In.
    Tip: When the Expert workspace of the new project opens, go to File Menu/Save As. Name the project and set the new folder created as the Save In of the Save Project dialog.
    Please review and consider and then let us know if any of that worked for you.
    Thanks.
    ATR

  • How to delete all data in a table

    What's the best way to delete all of the data from a table? I wan't to do a data wipe of our database to eliminate all of the test data we've been putting into it over the last few months.
    I've tried using: DELETE FROM TABLENAME; but killed SQL+ after it ran for 13 hours and still wasn't done. There are approximately 900,000 records in this table and I would prefer not to drop/recreate the table because of the various dependencies within the database.
    Any suggestions would be appreciated.
    Thanks,
    Shawn Smiley
    Sr Software Developer/Software Architect
    xwave New England

    Try the TRUNCATE TABLE command. That's quick and easy.
    e.g.
    TRUNCATE TABLE mytable;

  • How can I make extra storage on my phone when I have deleted any all data, pictures and files that I couldn't store in a dropbox and not have purchase additional storage?

    how can I make extra storage on my phone when I have deleted any all data, pictures and files that I couldn't store in a dropbox and not have purchase additional storage?

    Purchasing additional storage only applies to iCloud, not to the phone itself. You cannot purchase additional storage for the phone, only purchase a larger capacity phone. If you have deleted all of the content that you can, then that is all of the space that you have. What is it exactly that you are trying to do? Does this have to do with space for performing an OTA update of the iOS?

  • How to delete all offline file references in a catalog?

    I backed up and restored my entire photo archive to a new computer.  I've never used offline files, but somehow I now have hundreds (if not thousands) of offline file icons, right next to the exact same file date and time, except the images are now named [filename]-1.jpg
    I've tried the "reconnect files" and delete, but it tells me I have no files to reconnect.
    I'd wipe and reinstall, but I have a sneaking suspicion those "offline files" are embedded into my last backup, and I'd just be doing all that work for nothing.
    How can I go through and bulk-select and delete *all* references to offline files?
    Thanks in advance.
    - Bruce.

    Hi John...
    Thanks for the reply.  I just have a couple of comments to make on results:
    (1) HMBM is listed as being in a DVD drive , I know the disk, but that drive is currently empty.
    (2)  E: could certainly be one of my backup drives, but the file pathe (for 2004) seems to be off, as most of the missing / duplicate files are from 2007. (It currently is not attached.)
    Thanks for looking ino this.
    psedbtool version 1.07
    Opening catalog C:\Users\Bruce\Pictures\My Catalog 1\catalog.pse7db
    Photoshop Elements version:      7
    Total files               :  24230
    Total files missing       :    340
    Total files offline       :   8489
    Total files wrong volume  :      0
    PSE Volume Table
    Path used by PSE        : [E:]
    Type                    : removable_drive
    Status                  : offline
    Total files             : 8489
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : E:
    Serial                  : E:/Photos/2004_10_26
    Drive_path_if_builtin   :
    Id                      : 89620
    Path used by PSE        : C:
    Type                    : builtin_drive
    Status                  : online
    Total files             : 15741
    Total files missing     : 340
    Total files wrong volume: 0
    Description             : C:
    Serial                  : 2C3B-D057
    Drive_path_if_builtin   : C:
    Id                      : 4009
    Path used by PSE        : [USB-KEY]
    Type                    : removable_drive
    Status                  : offline
    Total files             : 0
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : USB-KEY
    Serial                  : 7614-7214
    Drive_path_if_builtin   :
    Id                      : 167027
    Path used by PSE        : C:\Users\Bruce\Pictures\My Catalog 1
    Type                    : database_relative_drive
    Status                  : online
    Total files             : 0
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : database relative
    Serial                  : amoc:database_relative_volume
    Drive_path_if_builtin   :
    Id                      : 2
    Path used by PSE        : [HMBM]
    Type                    : readonly_drive
    Status                  : offline
    Total files             : 0
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : HMBM
    Serial                  : 355B-10D5
    Drive_path_if_builtin   :
    Id                      : 3359
    Windows Drives
    Drive  Type             Serial     Path
    C:     builtin_drive    2C3B-D057 
    D:     readonly_drive   0000-0000 
    E:     removable_drive  0000-0000 
    F:     removable_drive  0000-0000 
    G:     removable_drive  B6B2-7BCF 
    H:     builtin_drive    0200-6B71

  • How to delete all files on old mac?

    Just got a new Mac Dual Core Intel Xeon for my main work computer. Transferred files from old G5 Tower to this new computer. NOW, I need to erase all files on the old G5 so new user can start from scratch (reinstall software, delete all of my old files, etc.)
    What is the best way to do this so that all is erased properly and no settings carry over from my user account?
    THANKS in advance!

    This is how you can erase the HD inside your iMac
    -Insert the installation disc 1 and sthut down your Mac
    -Start your Mac again while holding down the C key
    -Now your Mac should boot from the CD, this can take some time.
    -After a while you will see a installation screen where you can chose a language.
    -Chose English and continue.
    -Then click some time's next and agree with the "Software Agreement".
    -Open Disk Utility. Top menu bar --> Utilities --> Open Disk Utility.
    -Select your hard disk in the list of disks and volumes on the left side
    -Go to the erase tab on the right side
    -Select "Mac OS Extended (Journaled)"
    -Type "Macintosh HD"
    -Click to the options button
    -Select the option "Zero Out Data"
    -Press OK
    -Press the erase button
    -Wait until Disk Utility is ready and close it
    Now you can extit the installer or continue to install a clean OSX.
    Hopefully this is helpfull or solved your problem. Consider rewarding some points!
    Please see the "helpfull" and "solved" button's on top off this message! Apple: Why reward points?

  • After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?

    After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?

    Refer to this article:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538

  • How do I batch delete all my protected music files from iTunes.

    Hi, in a moment of stupidity, while I was working on a backup folder of my friends files (from his broken computer - copied them to my PC so he could get them back onto his new PC) I managed to copy all of his songs from his iTunes folder into my iTunes library. I don't know how I managed to do this, maybe it was the fact that I was really tired at the time.
    I own all my music - none of my music is copy protected (it is either downloaded from legal sites where the bands themselves [usually unknown or alternative artists] release their music, or I ripped the music from CD's I bought) and all of his music is copy protected.
    Now thing is, I have upgraded my PC before realising I did this, so now I don't have the original iTunes library (formatted PC and reinstalled XP from scratch) - is there any tools out there that will find and delete all your copy protected files from iTunes?
    I could go through song by song and when it comes up with the "Authorise computer - This computer is not authorised to play "******" Would you like to authorise it" and delete those songs, but as this is a very slow and time consuming process and considering I have 8,551 songs, I would prefer a faster way.
    I would go and re-rip all the songs, as I have the original discs, but this would take very long, and put quite a bit of strain on my CD drive, and this would not account for all the songs I have spent years finding on the internet/demo songs from friends bands.
    Any help is appreciated, as I would love to be able to remove all of his songs so they don't keep popping up in my iTunes library
    Thanks in advance.
    Dale.

    I have never tried this and am not at a computer with iTunes, but can you delete from a Smart Playlist? If so, you could make a smart playlist that shows songs that are of kind Protected ACC. Then select all and delete from that playlist. But I am not so sure if you can delete from a smart playlist.

  • I recently lost my windows laptop due to a virus. I had backed up all files onto a drive(files only). However no itunes playlists. i have all my playlists on my iphone and pics etc however when im trying to sync to my new computer itunes deletes all data

    I recently lost my windows laptop due to a virus. I had backed up all files onto a drive(files only). However no itunes playlists. i have all my playlists on my iphone and pics etc however when im trying to sync to my new computer itunes wants to  deletes all data off of my iphone so i click cancel
    i want to update to iOS 5 and still have itunes be able to copy my playlists from my iphone. for free. why does apple provide a recovery from iphone option?

    If you have a backup, restore the ENTIRE iTunes folder to the computer.  This restores the library and device association files.  If for some reason you chose to only back up the media and not the entire iTunes folder, then the only option is to let iTunes wipe the drive and re-sync.

  • HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    You must remember the code, if you can't then take the phone and proof of purchase to an Apple Store.

  • HT204053 I have a school ipad with iCloud using a different ID (my school email address) . I am leaving and want to buy my own ipad and transfer all my data and docs to my personal iCloud account but don't know how to do this without deleting all data and

    I have a school ipad with iCloud using a different ID (my school email address) . I am leaving and want to buy my own ipad and transfer all my data and docs to my personal iCloud account but don't know how to do this without deleting all data and photos?

    Heya Katie!!
    So, the article you have there, HT4895, is pretty good. Just look at the FAQ section of it.
    But basically, you will want to create a backup on your computer through iTunes...Just plug your current iPad into it and make sure your iPad and iTunes are logged in with the same Apple ID. At that point, just create a backup.
    When you get your new iPad, and before you plug it in or set it up, follow the directions in this link to change your Apple ID. http://support.apple.com/kb/HT5621?viewlocale=en_US
    Once you have that done, plug your new iPad into your computer to sync up with iTunes. Follow the directions for Restore from Backup and it should bring all that info back to your new iPad.
    And changing your Apple ID email info will allow you to have your own!!! This should solve all your issues and GL!!!

  • How do i put tv programmes and videos from itunes to another iphone, without having to delete all data on the phone and replacing it with my library? i switched the 'sync only ticked songs and videos box' yet it still wont let me transfer videos from my i

    How do i put tv programmes and videos from itunes to another iphone, without having to delete all data on the phone and replacing it with my library? i switched the 'sync only ticked songs and videos' yet it still wont let me transfer videos from my itunes onto my new phone, any ideas??

    Copy the entire itunes folder from the old computer to the new computer.

  • How to delete all previous icloud data from current icloud after sighning in with the current icloud account

    so i sighned into someone elses device with the current icloud account and i sighned out. Some of the icloud data from the other device is now on mine. All i want to know is how to delete all the icloud data in my current icloud account from the other icloud account

    Hello ,
    I had the same problem and i have done everything manually.
    It's a shame that Apple doesn't put a "Reset to factory Settings" button or simply "Delete all data from iCloud.com". That way, it would be much simpler for everyone including myself.
    Winston Churchill is right unfortunately . Happy deleting !
    Kind Regards,
    Moonburn

Maybe you are looking for

  • Mode not supported error on my mac mini help!!!

    I have an 18 month old mac mini with a proview monitor. The problem is that for the past month whenever I have restarted my mac i intermittently get a black monitor screen after the apple loading one and a monitor error message box saying 'mode not s

  • Blackberry Curve - not a smartphone - error messages that wont go away

    Hello! I cant use my Backberry Curve as the foillowing message keeps appearing and wont shift when i press OK: 'The application FourSquare has attempted to open a connection to a location inside the firewall and outside the firewall which is not allo

  • Open PDF on imac

    I can no longer click on a PDF document in an email or online and have the document open.  Can anyone help with this?

  • Ability to Duplicate a Layer

    Consider adding a touch menu on each layer (press and hold on layer icon) that adds a "Duplicate" option. Or allow a layer to be selected (longpress the layer) and then clicking the + icon will contextually duplicate the currently selected layer. Bee

  • Add an approval signture

    Hi there I'm trying to create a very simple PDF form with signature and a submit button. I need this signature to be very easy to use - I really don't want the user to have to create a digital ID (ie let's pretend the user barley knows how to use rea