How can I check the open-mode of an opened file from the file refNum?

How can I check the open-mode of an opened file from the file refNum?
Especially whether a file is opened as read-only or write-only? I haven't found any VI in the panel with file VIs.
Thanks for any hints!

Check this post. Probably you can use a kernel.dll call.
http://forums.ni.com/t5/LabVIEW/file-date-created/m-p/109836

Similar Messages

  • HOW CAN I DELETE AN EVENT WITHOUT  HAVING TO SELECTING IT FROM THE LIBRARY?

    I have a big problem.
    I want to delete an entire event from my library because everytime I select it imovie freezes and then close itself up. So I have to re-open imovie again. And when I want to select that particular event again the same problem occures. So I can not select that particular event. Therefore I can take NO action on this event.
    HOW CAN I DELETE AN EVENT WITHOUT HAVING TO SELECTING IT FROM THE LIBRARY?
    (Everytime I select it imovie closes itself up)
    All other events work fine. I believe The footage had a problem from capturing. but now it's in my computer and i can't open it.
    Please help me, I don't need this event, I can't open it therefore I can't use it and it takes place on my hardrive for nothing.
    Thank you

    One can delete it from one's computer. In the finder go to homeuser, movies, imovie events, delete the footage.
    Then reopen iMovie and see if that helps.
    Hugh

  • HT4628 How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)?  There used to be a setting for this in previous versions of OSX but I can't find it in the new version.

    How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)?  There used to be a setting for this in previous versions of OSX but I can't find it in the new version.

    How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)?  There used to be a setting for this in previous versions of OSX but I can't find it in the new version.

  • How can I make an external link (to a different folder) from the main menu?

    How can I make an external link (to a different folder) from the main menu?

    If the folder is outside the Muse page, you will have to insert manual HTML to define a more complex URL like e.g. ../_stuff for going one level up and then into a folder called "_stuff" The deeper you are in the hierarchy, the more ../ you will have to add to climb up.
    Mylenium

  • How can i check in an eventreceiver of a document library if a file i getting renamed

    Hi,
    i have a document library with an eventreceiver. I am using the events itemadded, itemupaded and itemfilemoved. When i rename a file the event itemfilemoved is called. But how can i check now if this call is from a rename action?
    I saw that there is properties.ListItem.Name but there is no properties.BeforeProperties.ListItem.Name or properties.AfterProperties.ListItem.Name.
    Has someone an idea?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    Hi,
    Use the ItemFileMoving(SPItemEventProperties) event.
    This will get fired before moving the document. So the
    properties.ListItem.Name will be old name and for new name use 
    string fileName = properties.AfterUrl;
    //split it when it gets to /
    string[] nFileName = url.Split('/')
    //return only the file name
    fileName = nFileName[1];
    I hope this will help you. 
    Dont forget to mark as answer if it helps.
    Regards
    Nikhil Ahuja

  • How can i check to see if an object is already in the array list?

    while (res.next()) {
                    Schedule schedule = new Schedule();
                    customerName = res.getString("CUSTOMERNAME");
                    schedule.setCustomerName(customerName);
                    magName = res.getString("MAGNAME");
                    schedule.setMagName(magName);
                    System.out.println("NAME: " + customerName);
                    System.out.println("MAGNAME: " + magName);
                    if(!scheduleListH.contains(schedule))  //this won't work
                        scheduleListH.add(schedule);
                }schedule object has 2 fields, customerName and MagName;
    Basically i want to say, IF the scheudleList (which is an array list) contains an object schedule that has the same customerName and MagName as any of the objects in the array list, don't readd the object.
    ANy help would be great!

    Thanks!
    Oops I forogt I could use the .contains, i also tried that but still no luck.
    There is no compiler error but here is an example of the output:
    Populating scheudle list for HOLIDAY selection data structure: 
    NAME: Cory
    MAGNAME: Merlin
    NAME: Brandon
    MAGNAME: Gondorf
    NAME: Chris
    MAGNAME: Houdini
    NAME: Lokie
    MAGNAME: Blaine
    Sample SCHEDUEL H [Cory          Merlin, Brandon          Gondorf, Chris          Houdini, Lokie          Blaine]As you can see, There are 4 objects in the array list:
    Cory Merlin
    Brandon Gondorf
    Chris Houdini
    Lokie BLaine
    Now this function is called everytime the user choses a new item in a combo box.
    So if they go back to the previous selection, Holiday's, it shouldn't read add all the orginal things.
    But if I go up and select the same item in the combo box it changes whats in the array list to the following:
    Populating scheudle list for HOLIDAY selection data structure: 
    NAME: Cory
    MAGNAME: Merlin
    NAME: Brandon
    MAGNAME: Gondorf
    NAME: Chris
    MAGNAME: Houdini
    NAME: Lokie
    MAGNAME: Blaine
    Sample SCHEDUEL H [Cory          Merlin, Brandon          Gondorf, Chris          Houdini, Lokie          Blaine, Cory          Merlin, Brandon          Gondorf, Chris          Houdini, Lokie          Blaine]Here's my whole function if your interested and where I call it:
        void populateSchedule(String holiday) {
            Statement sta = null;
            Connection connection6 = null;
            try {
                connection6 = DriverManager.getConnection(URL, USERNAME, PASSWORD);
                sta = connection6.createStatement();
                //getting the list of magicians from the selected holiday to see if any are free
                ResultSet res = sta.executeQuery(
                        "SELECT CUSTOMERNAME, MAGNAME FROM SCHEDULE WHERE HOLIDAYNAME = '" + holiday + "'");
                String customerName = " ";
                String magName = " ";
                System.out.println("Populating scheudle list for HOLIDAY selection data structure:  ");
                //this is where I add the waiting list objects to the array that will later be used
                //to print out and shown to the user when they select the waiting list status
                while (res.next()) {
                    Schedule schedule = new Schedule();
                    customerName = res.getString("CUSTOMERNAME");
                    schedule.setCustomerName(customerName);
                    magName = res.getString("MAGNAME");
                    schedule.setMagName(magName);
                    System.out.println("NAME: " + customerName);
                    System.out.println("MAGNAME: " + magName);
                   if(!scheduleListH.contains(schedule))
                       scheduleListH.add(schedule);
                System.out.println("Sample SCHEDUEL H " +   scheduleListH);
            } catch (SQLException ex) {
                System.out.println(ex);
                ex.printStackTrace();
            } finally {
                try {
                    sta.close();
                    connection6.close();
                } catch (SQLException ex) {
                    Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);
    //this is where i call in the GUI
        private void specStatusComboBoxActionPerformed(java.awt.event.ActionEvent evt) {                                                  
            // TODO add your handling code here:
            String selectedItem = (String)specStatusComboBox.getSelectedItem();
            String groupSelectedItem = (String) groupStatusComboBox.getSelectedItem();
            if(groupSelectedItem.equals("Holidays"))
                //get customer name and magician name from the Scheduel table
                //use selectedItem (it will be a holiday name)
                //magicDB.clearScheduleHList();
                magicDB.populateSchedule(selectedItem);
                ArrayList<Schedule> tempScheduleList = magicDB.getScheduleHListCopy();
                outputTextArea.setText(" ");
                outputTextArea.setText("CUSTOMER NAME" +"\t\t" + "MAGICIAN NAME" + "\n");
                for(int i = 0; i < tempScheduleList.size(); i++)
                    outputTextArea.append(tempScheduleList.get(i).toString() + "\n");
        }   I'll reward the duke stars anyways because you have been a great help either way!

  • How can I get my emails back into my hotmail account from the Mail app

    Dear Apple support team
    I started using the Mail app some weeks ago because I apparently needed it, to be able to open an invitation for an iCloud shared photo folder. As soon as I registered my email into the Mail app all my emails from my hotmail account where deleted from the hotmail server. I really hope that this is possible to revert because if not, it'd be a catastrophe for me. I use that account from several devices for work, and I need those old emails in the server to be able to work again!
    I'd really appreciate any advice on this!
    Many thanks,
    Pier

    You can use the iPhoto Export feature to do that. Furthermore, it's the best way if you want to keep the quality of the pictures.
    To put the photos in the Pictures folder, first open iPhoto and then, select Edit menu (on the menu bar) > Select All. Finally, go to File menu > Export, and export your photos to the Pictures folder, so they will appear on all Time Machine backups you create since then

  • I upgraded from an iPhone2 to an iPhone4s now I can't sync the ringtones from music that I purchased from itunes to correspond with my contacts.  How can I get it where I know who is calling from the ringtones I used to have?

    I upgraded from an iPhone2 to an iPhone4s and now my ringtones are gone.  I still have the music that I  bought from iTunes that I made the ringtones from but I can't seem to get anything to work.  Help!  Thanks.

    For the font problems, try the "Safe Mode" suggestion in this old thread:
    http://discussions.apple.com/thread.jspa?threadID=1956989&start=20
    ...Found by doing THIS. Also see this Apple doc:
    _Mac OS X: What is Safe Boot, Safe Mode?_
    ...Found by entering "safe mode" in the first field here:
    http://support.apple.com/kb/index?page=search

  • How can I set up imessage on iPhone to send messages from the name of number but not e-mail.

    I can set up iMessage on Macbook to send from the name of number, but can't do it on my iPhone after upgrading to 6.1

    If your iPhone and iPad are both running iOS 6, and your iPhone successfully registered it's phone number in Settings>Messages>Send & Receive, all you should have to do on your iPad is go to Settings>Messages>Send & Receive and sign in with the same Apple ID you are using on your phone. 
    If it is, and it still isn't working, try going to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in.

  • How can an image be displayed by using raw data read from the serial port?

    Hi there,
    I am using an embedded camera to take photos. To operate it i send commands to it via the serial interface. I have received all of the image data back through the serial port and can view it as hex data in a string. The image data is 16bit colour RAW data at 160x120 resolution meaning i have 38400 bytes of data (160x120 = 19200. 19200*16 = 307200. 307200/8 = 38400). I want to be able to display this data as a picture, but cannot figure out how to do it. Can someone please point me in the right direction? i have been fiddling about with lots of the pixmap functions but no luck. Do i need to put this data in to a 2D array first?

    Yes, first convert it into a 2D array of pixel values. From there you can convert it into an image to display it in a picture control.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How can I execute a command inside of a VM client from the VM host?

    Hi!
    I'm working on a set of scripts to automate MOC classroom installations using MDT and PowerShell. Sofar I've been able to automate everything except for the Rearm needed within the VM Clients. Is there any command (preferably PowerShell) that I can Launch
    on the VM host with which I can execute a command within the VM Client?
    Regards,
    Gerrit Deike
    If you think your to small to make a differnce, try going to bed with a mosquito in the room...

    If you wanted the pings to run in parallel, you could have this applet configure another applet to do the pinging, then remove it on the last run.  This will require an amount of programmatic logic, though.  If you wanted to keep things a bit simpler, add another applet that runs at 22:00 that configures a watchdog pinging applet, then a third applet that runs at 22:10 that removes the pinging applet.
    When it comes to embedded quotes when you configure your nested pinging applet, you'll need to use $q to stand for the embedded quotes.  You'll also need to configure:
    event manager environment q "

  • How can i create a gradient with four colours that graduate from the four corners of a rectangle?

    I've been trying various ways of doing this and nothing's worked so far; I've tried blending two gradients, tried blending four different colours but no luck with that either.
    What I'm looking to do is exactly what is displayed when you double click on the colour picker and you select R, G or B. Any help will be much appreciated.

    I'd tried using two linear gradients but it didn't give the results i wanted, but i've sorted it out using gradient mesh. Thanks!

  • How can i check the dsp work properly on cisco 2851?

    Hello all.
    There are somthing wrong with voice gateway in our gateway.
    One of the E1 channel can't make a call from local pod to remote pod.
    PABX engineer told me, he tried to make a call manually seizing spefic one of the E1 channel using his digital phone to check E1 channel testing, he found some channel can't make a call.
    He called the symtom as "lockout".
    the logout status means, they can't make a call specific channel eventhough the channel not busy.
    so i check the status of the gateway using "sh isdn services", but all channel are idle.
    ISDN Se1/0/0:15, Channel [1-31]
    Configured Isdn Interface (dsl) 0
    Channel State (0=Idle 1=Proposed 2=Busy 3=Reserved 4=Restart 5=Maint_Pend)
    Channel : 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    State : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    Service State (0=Inservice 1=Maint 2=Outofservice 8=MaintPend 9=OOSPend)
    Channel : 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    State : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    ISDN Se1/0/1:15, Channel [1-31]
    Configured Isdn Interface (dsl) 1
    Channel State (0=Idle 1=Proposed 2=Busy 3=Reserved 4=Restart 5=Maint_Pend)
    Channel : 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    State : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    Service State (0=Inservice 1=Maint 2=Outofservice 8=MaintPend 9=OOSPend)
    Channel : 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    State : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    At that time, i had debug on local gateway.
    I can't understand the cause code...and status
    *Oct 18 18:40:59.815 KST: ISDN Se1/0/0:15 Q931: RX <- SETUP pd = 8 callref = 0x3202
    Bearer Capability i = 0x8090A3
    Standard = CCITT
    Transfer Capability = Speech
    Transfer Mode = Circuit
    Transfer Rate = 64 kbit/s
    Channel ID i = 0xA9839C
    Exclusive, Channel 28
    Progress Ind i = 0x8183 - Origination address is non-ISDN
    Calling Party Number i = 0x2180, '615861200'
    Plan:ISDN, Type:National
    Called Party Number i = 0x81, '9680100'
    Plan:ISDN, Type:Unknown
    Sending Complete
    *Oct 18 18:40:59.823 KST: ISDN Se1/0/0:15 Q931: TX -> CALL_PROC pd = 8 callref = 0xB202
    Channel ID i = 0xA9839C
    Exclusive, Channel 28
    *Oct 18 18:41:00.167 KST: ISDN Se1/0/0:15 Q931: TX -> ALERTING pd = 8 callref = 0xB202
    *Oct 18 18:41:02.955 KST: ISDN Se1/0/0:15 Q931: TX -> CONNECT pd = 8 callref = 0xB202
    *Oct 18 18:41:02.959 KST: ISDN Se1/0/0:15 Q931: TX -> DISCONNECT pd = 8 callref = 0xB202
    Cause i = 0x80AC - Requested circuit/channel not available
    *Oct 18 18:41:02.979 KST: ISDN Se1/0/0:15 Q931: RX <- CONNECT_ACK pd = 8 callref = 0x3202
    *Oct 18 18:41:02.979 KST: ISDN Se1/0/0:15
    **ERROR**: Ux_BadMsg: Invalid Message for call state 11, call id 0xD, call ref 0xB202, event 0xF
    *Oct 18 18:41:02.979 KST: ISDN Se1/0/0:15 Q931: TX -> STATUS pd = 8 callref = 0xB202
    Cause i = 0x80E20F - Message not compatible with call state or not implemented
    Call State i = 0x0B
    *Oct 18 18:41:03.039 KST: ISDN Se1/0/0:15 Q931: RX <- RELEASE pd = 8 callref = 0x3202
    *Oct 18 18:41:03.039 KST: ISDN Se1/0/0:15 Q931: TX -> RELEASE_COMP pd = 8 callref = 0xB202
    Voice gateway are connected NEC PBX and Nortel Meridian.
    Problems occured both PBX systems.
    I'm not sure the problem caused by PABX or Gateway.
    How can i check it?
    Regard,
    john.

    Hello.
    Here is the partial configuration on gateway.
    controller E1 1/0/0
    framing NO-CRC4
    pri-group timeslots 1-31
    description << NEC NEAX-1 >>
    controller E1 1/0/1
    framing NO-CRC4
    pri-group timeslots 1-31
    description << NEC NEAX-2 >>
    interface Serial1/0/0:15
    no ip address
    isdn switch-type primary-ntt
    isdn protocol-emulate network
    isdn incoming-voice voice
    no cdp enable
    interface Serial1/0/1:15
    no ip address
    isdn switch-type primary-ntt
    isdn protocol-emulate network
    isdn incoming-voice voice
    no cdp enable
    voice-port 1/0/0:15
    no comfort-noise
    busyout action shutdown
    busyout monitor GigabitEthernet0/0
    voice-port 1/0/1:15
    no comfort-noise
    busyout action shutdown
    busyout monitor GigabitEthernet0/0
    dial-peer voice 1 pots
    description << A -> B >>
    destination-pattern .T
    no digit-strip
    direct-inward-dial
    port 1/0/0:15
    dial-peer voice 2 pots
    description << C -> B >>
    destination-pattern .T
    no digit-strip
    direct-inward-dial
    port 1/0/1:15
    dial-peer voice 500 voip
    description << 1586 >>
    destination-pattern 1586....
    session target ipv4:192.168.254.2
    codec g711ulaw
    no vad
    dial-peer voice 501 voip
    description << 1586 >>
    preference 10
    destination-pattern 1586....
    session target ipv4:192.168.254.34
    codec g711ulaw
    no vad
    Other dial-peers are omitted
    dial-peer voice 7777 voip
    description << Dummy Dial-peer for Codec Negotiation >>
    incoming called-number .T
    codec g711ulaw
    no vad
    Additionally, the NEC PBX was configuted it's isdn switch type ETSI.
    But our gateway's isdn switch type is primary-ntt.
    Regard,
    john.

  • How can i check the file  which is upload from  the server

    when upload the excel file from the server file to the internal table ,how can i check the data whether it accord with  the required condition .
    for example ,i want to upload the file which have the data whose type is pack, and it have three integer and  two decimal ,how can i check in my code.
    thanks,

    Hi Sichen,
    First upload the file, Then do ur validations and delete the records that doesn't satisfy ur requirements.
    Thanks,
    Vinod.

  • How can I check my MobileMe mail & contacts from another iPhone?

    How can I check in on my MobileMe email &amp; contacts from another iPhone or iPad, not my own? When I go to Me.com, the only option it offers is to set up the iPhone with my account -- which is NOT what I want. Is there a workaround or another path to login that doesn't force the "setup"' page on me?

    What a dumb decision. It would seem sensible that a mobile visitor to me.com should be able to proceed to the "regular" website and check mail, etc., through the web interface. Obviously -- well, okay, maybe not, but it puzzles me! You might be (as I tried, yesterday) vising the site through the browser on your wife's iPhone, which is already set up with an account there (and it would require cancelling her log-in and completely resetting her iPhone to proceed on the path Apple now requires!), or ya might be using a friend's iPad (my next attempt, a few minutes later!), or etc. etc. etc.  Ooops! Brick wall! No options.
    Seems like a counter-productive decision, one that's certain to be counter to common-sense needs and goals of Apple users; I can't be the first person to find this dead-end to be frustrating and contrary to expectations.  Okay, I have my rant finished, now.
    Apple, what was the problem that you were so determined to "fix" with this, ummm, feature? Howsabout a little tiny button hidden in greyscale that allows you to contine to the website, or a forcing URL that bypasses the mobile "set-up" interception? Help?
    Thanks, gdgmacguy -- full credit for the answer! Darn it!
    Oops, for some reason it credited ME with the correct answer. I'll try to contact Apple support to get it credited to you. This is apparently a screwup in my posting.

  • How can i check when a given query was run

    how can i check when a given query was run ( i mean the timestamp ) from forms
    I am trying to run the query depending on when it was last run

    Hello,
    I'm not sure to really understand your need, but if you want to refresh the data blocks regularly, you can use a timer that would execute_query on the block every elapsed period of time.
    Anyway, there is no "timestamp" of this kind, so that you would store the information somewhere in memory on in a table, from a PRE-SELECT or POST-SELECT trigger for instance.
    Francois

Maybe you are looking for

  • My iPod keeps using my old Apple ID/email to try to access iCloud.

    Even though it shows the correct ID/email in the Settings when I try to access iCloud my old email pops up as my Apple ID. I can't delete it and tyoe in the correct one, and I can't sign in undet that email - it no longer exists, I don't remember my

  • Problem in Partial delivery BOM - items not copied in subsequent delivery

    Hi, We are using BOM in Sales order and we have activated delivery group for the BOM header item category. When we create first delivery we change the BOM header item quantity in delivey ( all the components quantity change accordingly) and save the

  • My itunes has stopped opening

    Hello all, this has been annoying me for the last few weeks, and so I thought I would see if anyone could help. I have a Windows 7 ACER laptop, and a week or so ago, itunes just stopped opening. I tried repairing, uninstalling and reinstalling both i

  • Java arrays contiguous in memory?

    are java arrays always contiguous in memory? or how does java save his arrays? i need to know because i wrote an algorithm with a lot of array length changing, and i wonder if it consumes a lot or not, maybe java uses virtual memory arrays like those

  • After Effects 1080P Render Issues

    I am having a heck of a time RAM Previewing 1080P projects. They stop previewing after so many frames. I set the preview to half, instead of full and it worked. But when I rendered the project, play back was in slow motion. For a 10 second clip, the