Is it Possible to use numeric Variables in a String Variable for file names?

Hi all

I don't really know how to phrase this question properly, but here's my question.

I have a DotNet object and method that someone else wrote to write in an Excel file. I want to use something like: "C:\Program Files\WMT\Sequences\ProductX" + Str (StationGlobals.File_Count) + '.arc' in a local or global variable strings, but I always get illegal characters in a filename. " If I put in the name parameter of value-chain file, it works. The numero_fichier variable is a number.

TIA,

Jim

Advertisement

Put the reference in your expression itself, or calculate the value of the second local using another expression that refers to the first local.

The expression in your first post will work very well when used as an expression if the backslashes are escaped (double).

Tags: NI Software

Similar Questions

  • Can Oracle 10g - I use a variable for the access of the user identifywhat tablesto?

    I have the following code in a trigger (PL/Sql block) of a form:

    Select fieldname in user1.sometable myvar;

    is it possible to use a variable instead of coding hard "user1"? And on the same subject, this variable would also be declared in the world?

    Thanks in advance,
    Darren

    Hello!

    User1 is the owner of the table sometable.

    If only the User1 runs your form, there is no need to put the tableowner in front of the tablename parameter.

    If other users run your form, you must create a public or private (for each user) synonym of this table.
    After that, you don't need to use owner.tablename in your sql statement.

    But:
    You cannot use a variable for the user name without using dynamic sql
    as you do if you create a recordgroup.

    Concerning

  • Is it possible to use a JPEG Image as an icon of file?

    Hello;
     
    Is it possible to use an image *.jpg as an icon of file (or folder)?
    Can I copy in any of the existing *.dll files (say, SHELL32.dll) and select: properties/customize/change icon?
     
    Thank you.
    Monir

    Windows XP does not support the 256 x 256 icons.  This size was introduced in Vista.

    Try to repeat your experiment, but at step 6, using 128 x 128 (or less).

    Wikipedia article:

    Windows XP, by default, employs 48 × 48 pixel icons in Windows Explorer. Windows XP can be forced to use greater than 256 × 256 icons by modifying the Shell icon size value but this would entail all the 32 × 32 size icons throughout the hull to be migrated. Microsoft recommends only sizes of icons up to 48 × 48 pixels for Windows XP. Windows XP can read 256 × 256 pixels icons and larger images and it can resize them to use if no closer image size is available.

  • Using a Variable for dataProvider Information

    I'm trying to use a variable to populate the dataProvider for printing. I pulled the example in Flex 3: training from the source book. When I try to use a variable, I get a Flash Player error, indicating that the provider is not defined. Is anyone know the correct such way to make it work?

    Here is the code:

    private void doPrint(event:Event):void {}

    selection = event.currentTarget.id + "s.dataProvider"

    var pj:FlexPrintJob = new FlexPrintJob();

    If (PJ. Start()! = true)
    {
    return;
    }

    var myPrintView:PrintView = new PrintView();
    this.addChild (myPrintView);
    myPrintView.myPrintDG.showHeaders = false;
    myPrintView.myPrintDG.rowHeight = 18;
    myPrintView.contact.text = "username:"+ uname;»
    myPrintView.myPrintDG.dataProvider = "(select)";
    pj.addObject (myPrintView);
    PJ. Send();
    removeChild (myPrintView);
    }


    This is the line I need to work: myPrintView.myPrintDG.dataProvider = "(select)";

    If I replace "(selection)" with roles.dataProvider, it works fine. I think it's just a matter of syntax. If you look at the previous line, I use a variable for the user name and which works very well.

    Any help would be greatly appreciated.

    Dave

    "Kurrykid" wrote in message
    News:[email protected] Macromedia.com...
    > I'm trying to use a variable to populate the dataProvider for printing. I have
    > supported on the example of the Flex 3: training from the source book.
    > When I
    > try using a variable, I get a Flash Player error, indicating that the
    > provider is
    > undefined. Does anyone know the correct way to this guy while he
    > works?
    >
    > Here is the code:
    >
    > private void doPrint(event:Event):void {}
    >
    > selection = event.currentTarget.id + "s.dataProvider"

    VR;

    selection = this [event.currentTarget.id +' is] .dataProvider;

    HTH;

    Amy

  • Tecra S1 - Possible to use the new Power Saver v7.11 for example?

    Hi all

    is it possible to use a more recent version of the saving on my laptop?

    I found for the Tecra S1 as the latest version of the v1.00.34M

    THX.

    Patrick

    Hello

    Of course, you can use a more recent version of Toshiba power saver, it's not a problem.

    On the Toshiba site, I can find version 1.00.33 for Tecra S1.
    However, download and install the latest version for your laptop and it will work.
    :)

    Welcome them

  • Applying the addEventListener method to the Clips using a variable for example appoints

    This project is in HTML5 Canvas using Javascript in Adobe animate.

    I have a lot of movie clip symbols of film, all with a single instance (for example name ('arms', 'head', 'leg', 'foot', etc.). I also have a display of graphics and text clip ("text") which has a keyframe labeled corresponding to each of these symbols instance names. When a symbol is clicked, I want the clip "displayText" to access the appropriate section.

    There are a large number of these clickable symbols in each of several animations, so I definitely want to be able to do this in a way auto-tableau, it is too many to write code for each.

    What I have is this:

    var objects = ['arms', 'head', 'leg', 'foot'];

    var clickObject = null;

    for (i = 0; i < objects.length; i ++) {}

    clickObject = (objects [i]);

    clickObject.addEventListener ("click", displayText.bind (this));

    }

    function displayText() {}

    this.displayAndSound.gotoAndStop (clickObject);

    }

    Console says "clickObject.addEventListener is not a function", and I have tried many variations of the scope, using onClick rather than a listener events, etc, etc. What I am doing wrong - something to do with the scope? Something to variables vs channels? Something to do with how javascript regarding instance names? Legally binding?

    I can get it works fine outside of the loop, using names of the current instance, fixed, so hopefully it's a clue to what goes wrong...

    Any help much appreciated.

    Look at what you do in the loop. You do not clickObject for an object reference, configure that you just want it set to a string value.

    Assuming that the objects are at the same level as the code, you should do instead:

    clickObject = this [object [i]];

    Property accessors - JavaScript | DND

    In addition, your event handler probably don't do what you hope, that he will, because the value of clickObject will be just what you set to last in the main code. You may need to use the event object.

    EaselJS tutorial: Mouse Interaction

    EaselJS v0.8.2 API Documentation: MouseEvent

  • Report query: I need to use a variable as domain name

    Hello everyone,
    Perhaps my question is very basic, sorry in advance if this is the case.

    My report query contains something like:
    «... and 'field_name' = 1...»
    'field_name' is not fixed but depends on a variable that is defined by a search form, let's say: field_name_search
    I don't know which I should use to include syntax: field_name_search in the above report query.

    Thank you.

    Eugenio

    Hello

    You need not actually double quotes for the names of simple objects.

    No matter what REPLACEMENT function you used would work on the content of the channel and would be regarded as a normal SQL - so the effect would be the same if you use it (unless, by chance, there was a quote in the string itself), in other words, you would still end up with a string not a fieldname.

    Andy

  • OLIVIER-meets - is it possible to create the variable for the formula?

    Hello

    I create a report by using the formula (CASE - WHERE - CAN).

    I want to create a variable that contains my formula, then reuse my variable in other areas.

    So if I need to change my formula, I won't have to change all my fields! (Single variable)

    I want to do, because the formulas that I use in my report are very long and I have several.

    So, I wonder, if there is a solution for this!

    If I have to change all the fields, it will become quickly unmanageable...

    I stand by that in OBI answers directly, and not in the RPD.

    If someone has an idea or a notice

    Thank you in advance,

    Best regards

    Julie.

    Julie,

    even here respond to who you have in the two threads that you opened on the communities of MOS: no, not really since you want to do in the responses. It * might * be possible to the RPD, but quite useless to instantiate a variable RPD just to instantiate a literal code.

  • Possibility to use the Enum control as an index for the loop entry For

    Hello world

    I'm curious to know if an ENUM type could be an index entry for a loop For (in fact, I tried in labview but it did NOT work).

    I use Enum to my two configurations (only two elements), but sometimes I need to run the two together.

    I wonder if it has a good structure to manage it, or simply replace ENUM with table.

    Thank you

    -Kunsheng

    Here is an example of use of the nodes of property:

  • Use of variables for name files

    I have an if statement that performs a function. Inside this function, I want a swf to play according to the variable name that appears table shuffle. Can someone help me with the syntax?

    function questions() {}
    it. "' question ' + questionNumb [0] +". play();
    }

    When this function is executed if the vallue of table questionNumb 0 is 2 I want the statement to be executed as question2.play (); I know that I have the wrong syntax, but I can't find a reference to this type of statement in my action script books or online. Any help would be appreciated.

    NetBoss

    function questions() {}
    _root ["issue" + questionNumb [0]] () .play;
    }

  • Variable for the name of the database or server?

    Can we use the BI Publisher variables in a model of EBS?
    We are on 11.5.10.2 and we would be able to identify


    I'm <? xdoxslt:get_variable($_XDOCTX,'CURRENT_SERVER_NAME')? >, but it does not work. Is there a documentation on the variables that are available?
    We want to do in the model, rather than changing all of our programs of rdf to return the name of the database.


    Thank you
    Angie

    To be more precise, such set of values are available in 10.1.3.4.1 (stand-alone version) according to the documentation:
    http://download.Oracle.com/docs/CD/E12844_01/doc/BIP.1013/e14667/TOC.htm#BABIEJJI

    Not sure if it's available in XMLP however.

    In addition, if it is still he wouldn't return the name of the database. See if my previous suggestion might work for you.

    see you soon

    Jorge
    PS If you find the answer to your question please give the points and close the message

  • Using a variable db link for interactive report

    I have a requirement where users select an instance a LOV apex (link db) and data in an interactive report query based on the selected db link.

    I use a db link in a report query interactive but only if I provide the exact name of the binding. If I'm doing something link select * from [email protected]:P12_DBLINK it does not work.

    It seems that my only option is to use something like apex_collection.create_collection_from_query and then I can build my dynamic SQL query and use a variable for the name of dblink. Then I create just a from IRR of my collection.

    This sound correct approach like that or am I missing something?

    Any suggestions are most appreciated,

    John

    Hi John,.

    Why not create a classic report based on a function of PL/SQL returns a query.

    André

  • Can I use a variable in step of TS Message for field 'waiting time '?

    Is it possible to use a variable (inhabitants, parameters, etc.) for the field "Wait time" in the stage of message TestStand?

    TestStand 4.1

    Thank you

    Rafi

    Go to the step settings > properties > Expressions > Expression Pre and enter something like:

    Step.TimeToWait = Locals.MyTimeToWait

  • Estimate of poor cardinality using Bind Variables

    Hi I'm using the 11.2.0.4.0 Oracle version. I have a query that is underway for the plan of the poor execution by the estimate of poor cardinality for two tables (I've extracted and published this part only) as I mentioned below, the individual conditions for which the estimate goes bad and moving entire query execution path.

    These are for two tables and currently we use BIND variable for them in our code, and I notice, its best estimate gives with literals. I need to know how to handle this scenario that I need this query to execute for all types of volumes. Is there something I can do without changing the code, as it works well for most of the execution? In the current scenario of the main query that uses those below tables providing a plan (index + nested loop) that works very well for small volume, but running for 10 hr + for large volume as ideally its going to the same regime.
    And Yes, most time that this request will be hit for small volume, but killing some appearance of large volume presents the performance of the queries.


    Here are the values of the variable binding.

    B1 VARIABLE VARCHAR2 (32);
    B2 VARIABLE VARCHAR2 (32);
    B3 VARIABLE NUMBER;
    B4 VARIABLE VARCHAR2 (32);
    B7 VARIABLE VARCHAR2 (32);
    B5 VARIABLE NUMBER;
    B6 VARIABLE NUMBER;

    EXEC: B1: = 'NONE ';
    EXEC: B2: = NULL;
    EXEC: B3: = 0;
    EXEC: B4: = NULL;
    EXEC: B7: = NULL;
    EXEC: B5: = 0;
    EXEC: B6: = 0;

    ---- For  TABLE1-------
     -- Published Actual VS Etimated cardinality
     
     
    -- With bind values
    select * from TABLE1 SF
    WHERE (   (SF.C1_IDCODE = :B4) OR (NVL (:B4, 'NONE') = 'NONE'))
        AND ( (SF.C2_ID = :B3) OR (NVL (:B3, 0) = 0));
    Plan hash value: 2590266031
    -----------------------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                 | Name                | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |  OMem |  1Mem | Used-Mem |
    -----------------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT          |                     |      1 |        |  28835 |00:00:00.08 |    2748 |     46 |       |       |          |
    |*  1 |  TABLE ACCESS STORAGE FULL| TABLE1              |      1 |     11 |  28835 |00:00:00.08 |    2748 |     46 |  1025K|  1025K|          |
    -----------------------------------------------------------------------------------------------------------------------------------------------
    Predicate Information (identified by operation id):
    ---------------------------------------------------
       1 - storage((("SF"."C1_IDCODE"=:B4 OR NVL(:B4,'NONE')='NONE') AND ("SF"."C2_ID"=:B3 OR NVL(:B3,0)=0)))
           filter((("SF"."C1_IDCODE"=:B4 OR NVL(:B4,'NONE')='NONE') AND ("SF"."C2_ID"=:B3 OR NVL(:B3,0)=0))) 
     
    -- With literals 
    select * from TABLE1 SF
     WHERE  (   (SF.C1_IDCODE = null) OR (NVL (null, 'NONE') = 'NONE'))
          AND ( (SF.C2_ID = 0) OR (NVL (0, 0) = 0));
       Plan hash value: 2590266031
    --------------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                 | Name                | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    --------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT          |                     |      1 |        |  28835 |00:00:00.03 |    2748 |       |       |          |
    |   1 |  TABLE ACCESS STORAGE FULL| TABLE1              |      1 |  28835 |  28835 |00:00:00.03 |    2748 |  1025K|  1025K|          |
    --------------------------------------------------------------------------------------------------------------------------------------
    
    --------For TABLE2 ----------------------- 
    -- Published Autotrace plan, as it was taking long time for completion, and actual cardinality is 45M, but its estimating 49 With bind value---
    
    --withbind value
    select * from TABLE2 MTF
    WHERE (   (MTF.C6_CODE = TRIM (:B2)) OR (NVL (:B2, 'NONE') = 'NONE'))
      AND (   (MTF.C3_CODE = :B1)  OR (NVL (:B1, 'NONE') = 'NONE'))
      AND (   (MTF.C4_CODE = :B7)  OR (:B7 IS NULL))
      AND (   (MTF.C5_AMT <= :B6)  OR (NVL (:B6, 0) = 0))
      AND (   (MTF.C5_AMT >= :B5)  OR (NVL (:B5, 0) = 0));
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1536592532
    -----------------------------------------------------------------------------------------------------------
    | Id  | Operation                  | Name         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    -----------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT           |              |    49 | 10437 |   358K  (1)| 01:11:43 |       |    |
    |   1 |  PARTITION RANGE ALL       |              |    49 | 10437 |   358K  (1)| 01:11:43 |     1 |  2 |
    |*  2 |   TABLE ACCESS STORAGE FULL| TABLE2       |    49 | 10437 |   358K  (1)| 01:11:43 |     1 |  2 |
    -----------------------------------------------------------------------------------------------------------
    Predicate Information (identified by operation id):
    ---------------------------------------------------
       2 - storage(("MTF"."C4_CODE"=:B7 OR :B7 IS NULL) AND ("MTF"."C3_CODE"=:B1 OR
                  NVL(:B1,'NONE')='NONE') AND ("MTF"."C5_AMT"<=TO_NUMBER(:B6) OR NVL(:B6,0)=0) AND
                  ("MTF"."C5_AMT">=TO_NUMBER(:B5) OR NVL(:B5,0)=0) AND ("MTF"."C6_CODE"=TRIM(:B2) OR
                  NVL(:B2,'NONE')='NONE'))
           filter(("MTF"."C4_CODE"=:B7 OR :B7 IS NULL) AND ("MTF"."C3_CODE"=:B1 OR
                  NVL(:B1,'NONE')='NONE') AND ("MTF"."C5_AMT"<=TO_NUMBER(:B6) OR NVL(:B6,0)=0) AND
                  ("MTF"."C5_AMT">=TO_NUMBER(:B5) OR NVL(:B5,0)=0) AND ("MTF"."C6_CODE"=TRIM(:B2) OR
                  NVL(:B2,'NONE')='NONE'))
      
    -- with literal
    select * from TABLE2 MTF
    WHERE (   (MTF.C6_CODE = TRIM (null)) OR (NVL (null, 'NONE') = 'NONE'))
     AND (   (MTF.C3_CODE = 'NONE') OR (NVL ('NONE', 'NONE') = 'NONE'))
      AND (   (MTF.C4_CODE = null)  OR (null IS NULL))
       AND (   (MTF.C5_AMT <= 0)  OR (NVL (0, 0) = 0))
      AND (   (MTF.C5_AMT >= 0)  OR (NVL (0, 0) = 0));
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1536592532
    -----------------------------------------------------------------------------------------------------------
    | Id  | Operation                  | Name         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    -----------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT           |              |    45M|  9151M|   358K  (1)| 01:11:41 |       |    |
    |   1 |  PARTITION RANGE ALL       |              |    45M|  9151M|   358K  (1)| 01:11:41 |     1 |  2 |
    |   2 |   TABLE ACCESS STORAGE FULL| TABLE2 |    45M|  9151M|   358K  (1)| 01:11:41 |     1 |  2 |
    -----------------------------------------------------------------------------------------------------------
    
    select column_name,num_nulls,num_distinct,density
    from dba_tab_col_statistics where table_name='TABLE2'
    and column_name in ('C3_CODE','C4_CODE','C5_AMT','C6_CODE');
    C3_CODE 0 65 0.0153846153846154
    C4_CODE 0 2 0.5
    C5_AMT 0 21544 4.64166357222429E-5
    C6_CODE 1889955 71 0.0140845070422535
    
    

    933257 wrote:

    ((SF. C1_IDCODE =: B4) OR (NVL (: B4, 'NONE') = 'NONE'))

    In fact for literals, I did not find any section of the predicate after running the sql code with activation "set autotrace traceonly explain."

    The main problem is with another large query whose cardinality is underestimated due to the presence of these table (table1, table2) with the above mentioned clause, and the query is for the analysis of index + nested with values of Bind loops and take 10 hr +, whereas with literals, its completion in ~ 8minutes with FTS + Hash Join.

    Your real problem is that you try to have just a single SQL query handle all POSSIBLE thanks to the use of embedded FILTERS ' either / or ' filters in the WHERE clause.  You want only a select this OPTION to run whatever filters have been selected at run time by the user or the application using it.  And it would never work.  You really need to SELECT different queries for different combinations of filter conditions.

    Why?  Think for a minute.  How Oracle works internally?  A SQL SELECT query gets analyzed and an execution plan is produced which is stored in the library cache and gets REUSED on all subsequent executions of this query - except in certain cases where there may exist several plans run through several cursors of the child.  So with only SELECT a query you only AN execution plan in the library cache, to be used by all THE executions of this query, regardless of the value of your run-time binding variables.

    Lets put another way - each library cache execution plan is associated with a SQL statement.  If you want a DIFFERENT execution plan then you need run a DIFFERENT SQL statement.  That's how you get a different execution plan - by running a different SQL statement.  Running the SAME SQL query generally you will get the SAME execution plan every time.

    In addition, because of the "either / or" filters that you use you will end up generally with a full Table Scan on each of the referenced tables.  Why?  Given that the optimizer must produce an implementation plan that manages all possible contingencies for all values of possible bind variables in the SELECT.  If the optimizer should choose to use any index based on one of these "either / or" filters then it would only help performance when real value was provided, but it would be really bad if a NULL value was supplied.  If the optimizer ends up ignoring the index because they are not always optimal for all possible input values and instead chose a plan that is "good enough" for all input values possible.  That means that it will use a scanning Table full.

    I hope you can see that it is precisely what is happening for you with your query.  You select this OPTION to manage the different combinations of filter, which leads to the execution plan only one, which leads to scans full Table on the referenced tables in these ' either / or ' filters.

    The solution?  Build queries SELECT DIFFERENT when input values are NULL.  How you do that?  Read this article to ask Tom that tells you:

    http://www.Oracle.com/technetwork/issue-archive/2009/09-Jul/o49asktom-090487.html

    To sum up - when you have real value for a bind variable 'bind_var1' add the following filter to your CHOICE:

    AND column_name1 =: bind_var1

    When the binding variable is NULL, add the filter according to your CHOICE:

    AND (1 = 1 OR: bind_var1 IS NULL)

    Now, you'll have 2 queries SELECT must be performed, which have exactly the same number of variables in the same order bind, which is important.  When you then run one of these variations, Oracle can analyze and optimize each one SEPARATELY, with a single execution by the SELECT query plan.

    When you provide a real value, the filter is a normal 'column = value' that the optimizer can use all indexes on this column, because NULL values are not referenced.

    When there is no real value, the optimizer will analyze the '1 = 1 GOLD' and realize that "1 = 1" is set to TRUE and GOLD, it is quite TRUE regardless because the binding variable is null or not.  This means that the optimizer will actually REMOVE this filter, because it filters nothing because it is always TRUE.  You will end up with an operating plan based on the other filters in the query, which is what you want because you have no filter on this column.

    What is it - producing distinct SELECT queries to determine if you have a real value to filter or not you end up with DIFFERENT execution plans for each of them, and each of them is OPTIMAL for this particular set of filters.  Now you get good performance for each variation of the performance of the SELECTION, rather than sometimes good and sometimes very bad when using SELECT only one.  It is impossible to try to get multiple shots of execution 'optimal' out of a SELECT query.  That's why you get mediocre performance under different bound the values of the variables.

    John Brady

  • Using a variable in a view?

    I know that it is not possible to use a variable in a view, but I wonder if it isn't a work around? If there is a single value - from another table - you want to reuse in a view that doesn't use dynamic SQL code, how do you then? I've been playing around with statements, but makes me anywhere, I use 11r2.

    BTW, please don't ask me the standard litany of questions in anger-dba (why do this? your database is f *, RTFM, etc.), it's just for my own curiosity. :)

    Thank you


    Example for demo only for purposes (I know that is not syntactically correct):

    var_value variable varchar2 (30)
    Start
    Select this_is_just_one_value
    int: var_value
    from tableX where column1 = "BOB";
    end;

    Select
    numerous_columns
    of tableY
    where
    column 5 =: var_value.

    893968 wrote:

    BTW, please don't ask me the standard litany of questions in anger-dba (why do this? your database is f *, RTFM, etc.), it's just for my own curiosity. :)

    Why are you doing this? your database is f *! RTFM! Etc! ;-)

    SQL is not a procedural language - you can't create a view for example that has a parameter signature. For example, it is possible in a language of the proceedings:

    declare
            cursor c( deptID number ) is
                    select * from emp where deptno = deptID;
    begin
            open c( 1234 ); --// open SQL cursor using a parameter/variable
            --// etc..
            close c;
    end;
    

    It is not possible using a SQL object as a point of view. As a vision is not a procedure. If the same approach than what the above using SQL (stupid example, but only shows the basic principles):

    // define
    create or replace view emp_view as select * from emp;
    
    // use
    select * from emp_view where deptno = 1234;
    

    The CBO is smart - and he's probably going to push such a predicate in the SQL emp_view statement.

    To set up this view, is ugly. And should only be taken into account in dealing with issues such as data security restrictions. A context is created - this may contain a number of name values. The view can then use a name-value of the context. Oracle data dictionary views using this approach.

Maybe you are looking for