problem using ActiveX to Excel app to determine the numbers of rows/columns

Hello

I would like to develop an app, that question is not total. of rows and columns of a data sheet excel and read the data in the same. I made use of a few vi, I found on the forum, but having runing bad to them,.

can anyone please suggest me what I do wrong? I've never used before activex...

Hello

I would have used the free Excel Toolbox. See some examples with it here, here and here.

The library contains functions of Excel ActiveX premade. This function here would have helped you a lot:

Tags: NI Software

Similar Questions

  • Determine the number of rows returned by a cursor

    I have a problem when I need to use slightly different logic based on whether or not a cursor returns a single line or multiple lines. I know you can use % ROWCOUNT to determine the number of rows returned far+, but it's not really help me because I need to know this information before I start to do any treatment.


    In other words. How can I know the number of rows returned by a cursor without actually iterate through the entire thing.

    I'm looking for something like this:
       Cursor ReqCursor(pi_cert_id IN Varchar2) Is
          SELECT course_id cid, grade g
            FROM requirements
           WHERE cert_id = pi_cert_id;
       c_ReqCursor ReqCursor%Rowtype;
    
    Open CertCursor(p_cert_num);
        Loop
            Fetch CertCursor
              INTO c_CertCursor;
            Exit When CertCursor%Notfound;
            
            If c_CertCursor%NumOfRows > 1 THEN
                Case A;
            Else
                Case B;
            End If 
       End Loop
    Close CertCursor;

    For your business add

     SELECT course_id cid, grade g, count(*) over() Tot_Rows
            FROM requirements
           WHERE cert_id = pi_cert_id;
    --"Fetch 1st row and you will know if the cursor has more than 1 row"
    

    HTH
    SS

  • App to determine the "Signal strength" airport

    I have 1 Airport Extreme Base Station (5th generation) in my house.

    I have a 2nd Airport Extreme Base Station (also 5th generation) in a separate building in my back yard.

    The 2nd airport is connected to the airport 1 via an Ethernet Cable that runs through an underground conduit.

    I'm sure I used to have an App on my iPhone that would check the 'intensity of the airport Signal' as opposed to the 'speed '.

    Maybe it was on my old iPhone 4S & it was never transferred to the iPhone 6 Plus?

    Whatever it is, I can't seem to find the app anywhere.

    Does anyone have an idea on what this app can have been called or who made it?

    Any help would be greatly appreciated.

    iOS does not allow access to the wifi signal measures last I checked...

    However, I can recommend the app Netspot (PC/Mac friendly) to measure the signal wireless throughout your home.

  • I have really big problems using my Bell turbo key card to the internet can help you?

    I click on icon will not appear anywhere I'll try. This last bracket upward, I unplugged then tried power .it connected

    Hi CarolHalliday,

    I understand that you are facing problems connecting to Internet using turbo Bell key. I understand the inconvenience.

    (1) you get an error message?

    (2) did you of recent changes to the computer before the show?

    (3) what version of the Windows operating system is installed on the computer?

    I suggest also please contact the Bell Support for further assistance.

    Here is the link: http://support.bell.ca/

    Please respond with the above information so that I can help further.

    Kind regards.

  • unknown problem using WMP 12 no sound when played the song in the folder but has sound when he played in the player

    Hi all

    I have a weird problem using WMP (Windows Media Player v12).  When I double-click a song of in my library, the trail seems to play, but didn't have all the sounds.

    However, if I hover over the same path and then click Preview, the pop-up, the track plays with sound.

    When the track (s) do not play, all indications show the way to correctly play through of progress ' Now Playing ' screen, but no sound.

    In the past, when I clicked on any MP3 file, he would play using WMP.  Now, when I click on an MP3 file, it brings just "Now Playing" and looks LIKE he plays, but no sound.

    I have looked & looked for clues as to why it may be of WMP, but I can't understand the problem.  I also searched the Web for 'day' drivers in the Win System Manager, but Win says that pilots are "up to date".

    I have rebuilt the DB Library (twice) by removing the DB files in from WMP to a procedure in a WMP support forum. I also went to check the audio device in Device Mgr Win (mine is one on one). Everything seemed ok.  I also changed the devices to "Win by default" to what I think my onboard audio device is called.  I thought that that can do, but it's not.

    I was struggling with this since the day of the year.  Please help me solve this problem!

    Here is a link to my system features:

    http://Speccy.Piriform.com/results/0JAQshtlODwFxgwHeGb4rfq

    Hi, Pie,

    Welcome to the Microsoft community.

    Appreciate your efforts to try to resolve the problem that you have set so far. I guess that is not a problem with the driver that ultimately, the songs are playable using the media player. It could be a corrupted in Windows Media Player framework that is causing the problem. Let's run the Windows Media Player troubleshooting utility that resets all parameters to the player. Check out the link to do so:

    http://Windows.Microsoft.com/en-za/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Please let us know the results.

  • How to determine the number of rows in the database and save the result to a local variable?

    Hello

    I'm a newbie in the use of TestStand, databases and SQL, and now I've met difficulties. I use TestStand 2014 (32 bit).

    I have a need to know the number of rows in a database and save that number in a local variable. I tried to practice using the database of the Types of step provided with TS. I tried to use the following in a SQL statement:

    Locals.NumberOfRows = ("SELECT COUNT (*) FROM TEST_TABLE")

    It returns an error: specified value is not the expected type. My goal is possible in this way, or I'm doing this completely wrong?

    -RautSa

    Thank you for your response, Norbert. I have a database of who wins new values at random, and sometimes I need the exact number of rows in this table.

    I managed to achieve my goal by using the SQL statement: "SELECT COUNT (*) as Rowcount OF TEST_TABLE", followed by a data GET operation, which records that number of lines in a local variable.

    -RautSa

  • problems using MS Shared View App

    I have installed(and re-installed) Microsoft Shared view on my laptop under Vista Ultimate SP2.  I can open the program and invites you to a guest, but when I click on it I get the message "Shared View Console stopped".  When someone asks you to join me, I can open shared view and join.  I can then view their workstation (briefly), but if I or the other person is trying to change the control, or don't anyhing else clicking the SV Console my Console to shared view stops.  Made a few re - installed and rebooted, but nothing helped.  A clue to what goes wrong?  I also installed opinions shared on the laptop from my friend and it seems to work very well.  It has Vista Home Premium with Service Pack 2.

    Hello

    Microsoft SharedView is no longer supported by Microsoft, but you can view the archived for a possible solution support forum:

    Microsoft SharedView: Technical help

    See also: http://social.microsoft.com/Forums/en-US/sharedviewbetakbandfaq/threads

  • Problem using a checkbox in an update of the DB. Help, please

    Hello;
    I am writing a small application as a type of control. I use a box like lets say a switch off market. All my pages work well until you turn the check, or removing so the table BD field is empty. I get an error when I uncheck the box and click Update. Can someone help me? I will attach my code, here is the error I get:

    Run database query error.
    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Syntax error in UPDATE statement.

    The error occurred in C:\websites\108392zj7\sound\sound_RecordAction.cfm: line 9

    7: < cfif ParameterExists (Form.btnEdit_OK) >
    8: < cfif ParameterExists (Form.RecordID) >
    "9: < cfupdate datasource =" "#sitedatasource #" username = "#siteUserID #" password = "" #sitePassword # "tableName = 'his' = formFields" #Form.FieldList # ">"
    10: < cflocation url = "sound_RecordView.cfm" >
    11: < / cfif > < / cfif >



    --------------------------------------------------------------------------------

    SQL update sounds on = (param 1) where ID = (param 2).
    DATASOURCE ETUCE
    VENDORERRORCODE-3503
    SQLSTATE 42000

    attached is the code for the 3 pages that I use to run this little app for now. (Will be condensing it down to 1 or 2 pages soon.)

    Please help, I looked at this code for 2 days now and can't get it to work properly.

    Phoenix

    This code sets!

    checked>

    It works now!

    Maybe you can help me with a more difficult question?

    I want to do this for each user who logs on the site, always on sound, (Session management that I believe) they need to turn it off during their session using this little app. It is possible to write code for managing session making this happen for all users have to disable it?

    Phoenix

  • Windows 7 - problem using Ctrl + C to copy it to the Clipboard.

    I just got a new computer with windows 7 installed. on XP I could highlight the text or bitmap images and enter a ctrl-C to copy to the Clipboard, and then ctrl + V for pasting in the Clipboard. but now on Windows7 ctrl-C is not to copy the text/images/etc. highlighted in the Clipboard. What should I do to make this the default?

    On Monday, April 5, 2010 23:55:44 + 0000, rvatcher wrote:

    > I just got a new computer with windows 7 installed. on XP I could highlight the text or bitmap images and enter a ctrl-C to copy to the Clipboard, and then ctrl + V for pasting in the Clipboard. but now on Windows7 ctrl-C is not to copy the text/images/etc. highlighted in the Clipboard. What should I do to make this the default?

    From the limited information you provided, I can't tell you what to
    evil in your situation, but I can tell you that Ctrl-C, Ctrl-X, and
    CTRL + V work in Windows 7, just as they have worked in earlier versions of
    Windows.

    Ken Blake, Microsoft MVP (Windows desktop experience) since 2003
    Ken Blake

  • Cannot use editiable 'form' on App fields when the document is password protected. Used to be able to...

    We have created manuals on Adobe Pro which has fields to fill in edit for notes and it is password protected. Everything seemed to work perfectly on PC and Mobile Devices until this past weekend when we noticed that on mobile device, edit the fields are locked. The security settings are defined for the user to change the editable fields.

    Hello

    When the password is applied to a PDF document, the PDF document will be encrypted.

    Acrobat Reader mobile products (for iOS, Android, Windows Phone) have the known limit where the changes cannot be saved in encrypted PDF documents.  As a result, users are not able to make any changes (for example to fill in forms or add annotations/comments) to encrypted PDF documents.

    As you already know, there is no such limitation in the desktop version of Adobe Reader or Acrobat.

    Sorry for the inconvenience.

  • "-2146827284" error code when you try to open a workbook using ActiveX

    Hi all

    I have a problem using ActiveX to open excel files. I get the error code '-2146827284' (unknown error) when trying to open a workbook. This problem occurs on a single machine, that I work with, on the other, it works very well. All machines have the same configuration, Excel97 and Excel2007 installed on them.

    Any ideas?

    Thank you


  • Adobe Muse CC fails to download/install use dektop Creative Suite App

    Hello

    Adobe Muse CC fails to download/install use dektop Creative Suite App or via the web site.

    For info.

    (1) it's Creative Suite team

    (2) other Apps (photoshop, illustrator, inDesign) download / install OK

    (3) win7 PC platform - machine rebooted etc.

    Advice please

    Thank you

    Pete

    For the people who sent me the same problem... THE Muse CC will not download/install

    In my case it was because of a legacy version of Adobe Air (installed through CS6) which would be update or delete using the updated standard Adobe, or using the feature of panel\programs & features\uninstall microsoft\control

    To resolve this problem, you need the tool of register of Mircrosoft Fixit from here:

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall/en-us

    Run the tool of naming 'Adobe Air' as the program that could not be uninstalled... it took awhile, but finally finished uninstalling.

    Then I could just install Adobe Air from the MuseCC & using standard abobe installers.

    Hope this helps

    was soon Pete

  • Questions about to determine the size of the array of data storage with flexibility

    I try to use the CVI function below to load data from .csv file to the table that I was intending to use later:

    filereturnvalue = FileSelectPopup ("c:\\Users\\Desktop\\FileDirectory", "*.csv", "", 'Select the data file', VAL_LOAD_BUTTON, 0, 0, 1, 0, LoadFilePath);

    FileToArray (DATAArray, VAL_CHAR, LoadFilePath, MaxDataSize, 1, VAL_GROUPS_TOGETHER, VAL_GROUPS_AS_COLUMNS, VAL_ASCII);

    For the data table "predetermined", it is quite straightforward, because the size of the table is already set.  However, I wonder if there is anyway I could use CVI directly import data and determine the size of the array on the fly?  Which means that the user need not know the length of the data, and it could be determined then to import the file.

    Hello

    for ASCII files, you can do so in any first read the file and counting the newline characters, something like:

    int file_handle;
    int index;
    int size = 0;
    char line_buffer [80];

    If (OpenFile (...) > 0)
    {
    While (ReadLine (...) > 0)
    {
    size ++;
    }
    }
    CloseFile(f) (file_handle);

    This way you can determine the number of rows you have, but you must have an idea of how long a line may be, one number per line or 32000 because you must specify the size of your line_buffer.

    In the next step you analyserions monotube for occurrence of your column separator (say a ;) to determine the number of columns (separators found + 1).

  • determine the 'parent' of a selection

    Assuming that the cursor is in a story or selected text in a story, how, of app.selection, determine the paragraph, in which the cursor is?

    Of the paragraph, I could not history but I can't find any 'parent' properties from a selection to determine where he is.


    TX, Dave

    The cursor being placed in a story or with selected text:

    App.Selection [0] .parentStory > history

    App.Selection [0] .paragraphs [0] > paragraph selected (if you have selected more than one paragraph, only the first selected paragraph).

    Peter

  • Need help to be able to enter a cluster name, and to determine the other 2 variables

    All,

    If possible, I would like to be able to enter a cluster name powercli and use this piece of information to determine the 2 variables.

    Variable 1 - I would like to take the cluster name and the name of esx host with the least amount of VM output.

    Variable 2 - then I want to take this ESX host and the data store that has the most space of output.  A condition for this is that it must have more free space, but also have a minimum of 130 GB of available.

    Any ideas?

    It seems that I've lost a line during the copy, sorry about that.

    $freeGBTgt = 130
    $clusterName = Read-Host -Prompt "Enter a clustername"
    
    $min = 9999
    Get-Cluster -Name $clusterName | Get-VMHost | %{
         if($_.Extensiondata.Vm.Count -lt $min){
              $minVmHost = $_.Name
              $min = $_.Extensiondata.Vm.Count
         }
    }
    Write-Host "In cluster" $clusterName "server" $minVmHost "has the least guests"
    
    $maxDsFree = 0
    Get-VMHost -Name $minVmHost | Get-Datastore | %{
         if($_.FreeSpaceMB -gt ($freeGBTgt * 1KB) -and $_.FreeSpaceMB -gt $maxDsFree){
              $dsName = $_.Name
              $maxDsFree = $_.FreeSpaceMb
         }
    }
    if($maxDsFree -ne 0){
         Write-Host "On host" $minVmHost "datastore" $dsName "has" ($maxDsFree/1KB) "GB free space"
    }
    else{
         Write-Host "On host" $minVmHost "there is no datastore with more than" $freeGBTgt "GB free space"
    }
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

Maybe you are looking for