SQLPlus asking no variable substitution when the script is run

Hello gurus,

Line 9 pln.sql below, there is a variable substitution '& 1 '.
The first time I ran the pln.sql of the query, it prompted me to a value of & 1.
On all subsequent runs of pln.sql, it uses just the value of & 1. He didn't ask me for a value.
According to http://www.orafaq.com/wiki/SQL * Plus_FAQ,.

>
"&" is used to create a temporary substitution variable that prompts you for a value whenever it is referenced.
>

So, what don't get me? The behavior of substitution of the variables change when the variable within a script?
All the code is less; below the list, you can see "def 1" shows that the variable & 1 already has the string "Oracle" entrusted to him.
I would like to be able to run this script and every time have to invite me for a value of & 1.

Thank you very much
Jason

HR@XE> get C:\Users\J\Documents\SQL\ProOracleSQL\chapter05_scripts\pln.sql
  1  SELECT xplan.*
  2  FROM
  3     (
  4     select max(sql_id) keep
  5            (dense_rank last order by last_active_time) sql_id
  6          , max(child_number) keep
  7            (dense_rank last order by last_active_time) child_number
  8       from v$sql
  9      where upper(sql_text) like '%&1%'
 10        and upper(sql_text) not like '%FROM V$SQL WHERE UPPER(SQL_TEXT) LIKE %'
 11      ) sqlinfo,
 12*    table(DBMS_XPLAN.DISPLAY_CURSOR(sqlinfo.sql_id, sqlinfo.child_number, 'ALLSTATS LAST')) xplan
 13
HR@XE> def 1
DEFINE 1               = "Oracle" (CHAR)
HR@XE> @C:\Users\J\Documents\SQL\ProOracleSQL\chapter05_scripts\pln.sql
old   9:         where upper(sql_text) like '%&1%'
new   9:         where upper(sql_text) like '%Oracle%'

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------
SQL_ID  6k3tn5dr0k17v, child number 0
-------------------------------------
SELECT xplan.* FROM  (  select max(sql_id) keep         (dense_rank
last order by last_active_time) sql_id       , max(child_number) keep
      (dense_rank last order by last_active_time) child_number    from
v$sql   where upper(sql_text) like '%Oracle%'     and upper(sql_text)
not like '%FROM V$SQL WHERE UPPER(SQL_TEXT) LIKE %'   ) sqlinfo,
table(DBMS_XPLAN.DISPLAY_CURSOR(sqlinfo.sql_id, sqlinfo.child_number,
'ALLSTATS LAST')) xplan

Plan hash value: 2794990177

------------------------------------------------------------------------------------------------------------------
| Id  | Operation                          | Name              | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
------------------------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT                   |                   |      1 |        |     13 |00:00:00.05 |       4 |
|   1 |  NESTED LOOPS                      |                   |      1 |   8168 |     13 |00:00:00.05 |       4 |
|   2 |   VIEW                             |                   |      1 |      1 |      1 |00:00:00.01 |       0 |
|   3 |    SORT AGGREGATE                  |                   |      1 |      1 |      1 |00:00:00.01 |       0 |
|*  4 |     FIXED TABLE FULL               | X$KGLCURSOR_CHILD |      1 |      1 |      0 |00:00:00.01 |       0 |
|   5 |   COLLECTION ITERATOR PICKLER FETCH| DISPLAY_CURSOR    |      1 |   8168 |     13 |00:00:00.04 |       4 |
------------------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   4 - filter((UPPER("KGLNAOBJ") LIKE '%Oracle%' AND UPPER("KGLNAOBJ") NOT LIKE '%FROM V$SQL WHERE
              UPPER(SQL_TEXT) LIKE %' AND "INST_ID"=USERENV('INSTANCE')))


29 rows selected.

Providing a single variable value & substitution to a command prompt does not define it. That is why SQL * keep more you request a value whenever you reference the substitution variable. But as soon as you set it explicitly by using set command or help of & value persists and you ask no more.

SY.

Tags: Database

Similar Questions

  • You can use variable substitution in the Calc script.

    Hi guys,.

    I want to use variable substitution in the calculation script. I v_SECSUBAREA that my substitution variable and its value would be like C12.00 or C13.00 or C12.00, C13.00.

    But it gives me error mentioned below by checking the syntax of the calculation script.

    Error: parsing formula [statement of DIFFICULTY] (line 15) 1200315 error: invalid object type

    Calculation script:

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

    FIX (& v_CLEARYEAR, & v_CLEARMON)

    FIX (& v_SECSUBAREA)

    DIFFICULTY ('REPGBP', 'REPEUR', 'REPUSD', 'local', @DESCENDANTS ("DIVISION"), @LIST(&v_SECDNBENTITY), @DESCENDANTS ("SubAnalysis"),

    @DESCENDANTS ("RTNROW"), @DESCENDANTS ("RTNCOL"))

    CLEARDATA "RESUB."

    ENDFIX;

    ENDFIX;

    ENDFIX;

    Variable substitution:

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

    PRCCOR_ALLv_SECSUBAREAC12.00

    Calculation script does not have C12.00 as the value for the variable substitution. If I give FY15 then Script gives me a correct syntax.

    Please help me to get this resolved.

    Thank you

    Shruti

    Hello

    Assuming that you calculate in the PRC. Database COR_ALL.

    You may set the C12.00 value in quotes like "C12.00".

    Kind regards

    Philip Hulsebosch.

  • Put the active table in respect of the development when the script was interrupted by a dialog box

    I adapted a script which browse tables in a file of Fm and asks the user if he wants the current to be reformatted or not active table

    I have not find a clean way to the table that is currently selected in the variable "tbl" or visible on the screen when the scripts sends a dialog box.

    The workaround I found is to launch a format on the table before sending the guest, in this case the table processing is apparent when the prompt arises.

    But I would like to have the visible table and avoid doing all the treatments on the table until the user has had a chance to respond to the prompt.

    I guess that there must be a method to draw the attention of the active window on an item that is selected in a variable?

    function ApplyTableFormat (doc)
    {
    If (doc.) ObjectValid())
    {
    var tbl is doc. SelectedTbl
    var tbltitle;
    var tblTextItem;
    While (tbl. ObjectValid())
    {
    tbltitle = "";
    tblTextItem = tbl. FirstPgf.GetText (Constants.FTI_String);
    for (var i = 0; i < tblTextItem.length; i ++)
    {
    tbltitle += tblTextItem [i] .sdata;
    }

    / * How my "tbl" visible in the window active doc? */
    If (Alert ("format:" + tbl.)) "Tbltitle + FirstPgf.PgfNumber + '? \nClick Cancel to abort. ((', Constants.FF_ALERT_CANCEL_DEFAULT))
    return;
    / * Insert here the table formatting code * /.

    TBL = tbl. NextTblInDoc;
    }
    }
    on the other
    {
    Alert ('no active doc', Constants.FF_ALERT_CONTINUE_WARN)
    return
    }
    }

    There is a document feature that allows to scroll the window to a location of particular text:

    doc. ScrollToText (textRange);

    You might be able to do something like this:

    doc. ScrollToText (new TextRange (tbl. TextLoc, tbl. TextLoc));

    -Rick

  • Failure — CPU fan comes on full blast when the computer is running. Will not stop unless the computer is off

    Fan comes on full blast when the computer is running. Won't stop unless the computer is turned off, or in low power state. Tech has replaced the fans, problem resurfaced after computer tech left. Everything else seems to work very well. Dell XPS One (all-in-One), Intel Core 2 Quad CPU, Q8200 @ 2.33 GHz, 4 GB RAM, OS, Vista 32-bit

    I suggest you get back the Tech to fix it properly this time, because they have replaced the fan.

    Or try Dell Support/Forums:

    http://support.Dell.com/

    Dell support at the link above.

    http://en.community.Dell.com/support-forums/default.aspx

    Dell's Support Forums at the link above.

    See you soon.

    Mick Murphy - Microsoft partner

  • Dynamically change the variable substitution for the region title

    Is there a way to update the title of a region when you use variable substitution (for example. P1_TITLE_DATE)? I use a dynamic action to update the region-, but it does not update the title. Does anyone have a work around for this without submitting the entire page?

    Hello

    You can run code JavaScript change the title of your region.

    $("#MY_REGION div.rc-title").text("New Title")
    

    JQuery selector code depend on your model and its theme.

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Is the APP_USER always HTMLDB_PUBLIC_USER when a script is running?

    Hello

    Can I count on APP_USER always be "HTMLDB_PUBLIC_USER" when a script or collective update is executed? I currently have the following trigger enabled on a table that allows us to assign tasks among team members. The point is to send an email to the user when a user updates the table TASKS at the time the applicant for the task and the performer of the task. I want to ensure that emails are not sent when a script updates the table, because this could result in thousands of emails sent. I know another solution would be to run on the level of the application instead, but I prefer this to the table level, if possible.

    Any other suggestions to avoid an avalanche of e-mails sent by accident would be welcome.

    create or replace trigger "TASKS_SEND_EMAIL".
    FRONT
    Insert or update on the "TASKS".
    for each line
    DECLARE
    v_body varchar2 (4000);
    v_from varchar2 (4000);
    v_subj varchar2 (4000);
    v_to varchar2 (4000);
    number of v_id;
    V_Customer varchar2 (4000);
    BEGIN
    v_id: =: new.ID;
    IF v ('APP_USER') 'HTMLDB_PUBLIC_USER' <>/ This is supposed to mean not equal to, but he does not appear correctly here.
    THEN
    SELECT the CUSTOMER IN v_customer FROM MYCUSTOMERS WHERE REGISTRY_ID AS: new.customer;
    v_body: = ' customer: ' | V_Customer | Chr (10) | "Special Codes: ' | : new. TASK_CODE | Chr (10) | ' STATUS: '. : new. STATUS | Chr (10) | "Plaintiff :'|| : new. REQUESTED_BY |': ' | : new. REQUESTOR_NOTES | Chr (10) | Chr (10) | ' Assignee :'|| : new. ASSIGNED_TO |': ' | : new. ASSIGNEE_NOTES;
    v_from: = v ('APP_USER');
    v_subj: = "Task # | v_id | "Update - priority :'|| : new. PRIORITY |' -' || V_Customer;
    v_to: =: new. REQUESTED_BY | «, » || : new. ASSIGNED_TO;
    apex_mail. Send (p_to = > v_to, p_from = > v_from p_body = > v_body p_subj = > v_subj);
    END IF;
    END;

    Thank you.

    Forrest

    Published by: user552179 on October 16, 2008 13:18

    Forrest,

    Mass-updates previous that I ran, I noticed that the user update is HTMLDB_PUBLIC_USER...

    This is probably the result of the capture of the pseudovariable 'user' in SQL (perhaps in a trigger - select user to twice). This is the database user who created the session as defined in your DAD modplsql.

    The e-mail should be sent based on this condition:

    If v('APP_USER') is not null and not in v('APP_USER') ('APEX_PUBLIC_USER', 'HTMLDB_PUBLIC_USER', 'PUBLIC_USER', 'ANONYMOUS', 'person')

    .. .or control not null would manage all "Scripting" and check for other values of accounts as user name not authenticated various values for different versions of Application Express and different types of unauthenticated requests page. If you know that you have no pages 'public', where the DML might come from this second set of controls is not necessary.

    But then, there is the case where a developer/Director make inserts or updates on the table for a legitimate reason but uses the SQL Workshop shell and don't want emails sent. In this case v('APP_USER') would be the developer connected Admin and the controls described above would allow email to be sent. How to handle this? You can also see that this v('APP_ID') is actually your application instead of the ID of the query SQL Workshop. But maybe a better choice would be to consider this as part of your application and Magnatune trigger a package variable Boolean true just before issuing the DML. Then have the trigger that has this package variable is set to true before send you an email. Relaxation could then set the variable to false after sending the e-mail or page process could set to false just to keep things tidy. With this method, you are demanding that your application start the DML so that the trigger to send the e-mail.

    Scott

  • Creation of Data Type when the script crashes LabVIEW

    When you use the script (LV2010) if I call the Create method of Data Type (available appeal node when a reference to the BD is cable), if I have all but 1 up to the wiring on 'style' terminal, LabVIEW, it blocks. LabVIEW then restarts with an error message saying that "the last time that you have run LabVIEW internal error or accident took place in lvmain.cpp, line 1756. If I have wiring 1 However, it creates a constant fine.

    I see in the context-sensitive help that it always creates a control at the start, but it seems that I can't get it to create a constant. So, okay, I decided to go around, create the constant, take the new object refnum he returned and there to change the constant in one control... but I can't get this work. Can someone point me in the right direction? Here is the code and the screenshot; This is a quick drop plugin.

    It is intended to run on a cluster that is perceived as an icon if you want to test, you need to create that.

    I presented the 'style' value, 0 if if you don't want to plant LabVIEW, set it up to 1.

    No time for an in-depth exploration now.  Create from Datatype killed my LV10.  What I was able to do after creating a constant of cluster, the consultation as an icon and select it.  (1) with the scripts, create a new VI and stick that the constant to figure (2) mount the pasted objected to the ClusterConstant and the change of control.

    I think I know where you're going, should be interesting.

  • ExtendScript try/catch difference when the script took the ESTK and Illustrator

    Hello

    I wrote an ExtendScript for Illustrator using the toolbox toolbox ExtendScript (ESTK).  It works fine when running scripts it in Illustrator from the ESTK (using the target application functionality).

    However when I run it directly in Illustrator (by selecting it in the drop-down file menu > Scripts) I get a runtime error.  Is this normal?  Should I expect differences when you run the script in these two different ways?

    The error is in this feature...

    ```

    function itemUsable (arr, item) {}

    use var = true;

    try {}

    arr [point];

    usable = true;

    } catch (e) {}

    $.global.alert (e);

    usable = false;

    }

    usable back;

    }

    ```

    The code point is around the issue of the Illustrator to throw errors when accessing properties that do not always exist.  Connected ESTK the try/catch statement intercepts the error "No such item" and then sets the function returns false.

    When ran directly in Illustrator, the lights error message but the try/catch does not seem to stop the output script.

    The only difference I see is when to run the script in ESTK the dropdown next to the application target dropdown is always (and has only the option) 'main '.  Run the script directly in Illustrator, when the error is thrown this menu option drop-down is set to the 'transient' value.

    See this screenshot for an example of what I mean

    Screen Shot 2015-04-16 at 20.16.32.png

    Any help would be appreciated.

    Thank you

    / t

    Try adding $niveau = 0 at the beginning of the script or consult the last entry on the debugging of the ESTK tab

  • Is SQLERROR EXIT FAILURE every time that a good when the script contains CFDS?

    Version: 11.2.0.2

    I always encountered scripts SQL with whenever SQLERROR... isn't this useless feature when we CFDS in the script?

    example of sql script
    set echo on
    set feedback on
    WHENEVER SQLERROR EXIT FAILURE
    
    spool mylog.txt
    
    
    create table testertab1 (ename varchar2(5));
    
    create table testertab2 as select * from all_objects;
    
    insert into testertab1 values ('PEDRO');
    insert into testertab1 values ('JONATHAN');
    
    commit;
    
    spool off
    The second INSERT will be error, but both the DDL to CREATE TABLE 2 above cannot be undone; There isn't, so no point in having every time THAT SQLERROR.... Right?

    But I met a lot of SQL scripts with CED which has every time what FAILURE of OUTPUT SQLERROR. Maybe developers do not understand the use of this SQL * more River correctly.


    No idea why P.Forstman uses whenever SQLERROR EXIT FAILURE THAT in his example in the thread below?
    dependencies on view (how to get invalid)

    whenever sqlerror will also react case of ddl errors. However it is not used to manage rollback situations. But to stop or restart the script even if an error occurs.

    It is frequently used for irgnore errors that come from a create command, where you are not sure if the object (table, etc) is already in place or not.

    The default behavior is that you want your script to stop if an error occurs. But not in the above mentioned case.

    ...
    whenever sqlerror continue
    create table myTable....
    
    whenever sqlerror exit
    insert into myTable .... 
    
  • How to remove "modal dialog box or alert" when the script is underway?

    Hi all

    I've created a script that will set the text of the rtf files from a folder to a document on a different page based on the correspondence. But if a font which was in doc file but absent on my mac, showed an error when running the script.

    This means that Indesign has opened a missing alert police box and script stop to this line and the error shows "cannot process the request because a modal dialog box or the alert is active.

    Is possible to remove this error and the script is continue to place all RTF files? I have little knowledge of try/catch.

    indesign #target

    myDoc var = app.documents.item (0);

    sourceFolder var = Folder("/Users/admin4/Desktop/ec_txt");

    myFiles = sourceFolder.getFiles ("*.rtf");

    var myFrame1 = myDoc.pageItems.itemByID (111076);  Switzerland

    var myDoc.pageItems.itemByID = myFrame2 (111114);  euro area

    var myFrame3 = myDoc.pageItems.itemByID (111146);  Germany

    for (var i = 0; i < myFiles.length; i ++)

    {

    switch (myFiles [i].name.slice (6, myFiles [i].name.lastIndexOf ("_")))

    {

    case 'Switzerland_en ':

    myFrame1.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))

    break;

    case 'Eurozone_en ':

    myFrame2.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))

    break;

    case 'Germany_en ':

    myFrame3.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))

    break;

    }

    }

    To remove alerts, you can use different levels of user interaction.

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    

    Not forgotten to reset after the end of the script with the following:

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    

    Hope it resolve your request.

    --------

    Green4ever

  • Column headings missing when the SQL report runs Oracle Conc ask

    Why the column headers for a sql report do not disappear when I try to run Oracle Manager of competing application work? If I copy and paste work in SQL * more and run it, the topics show on the report. Is there a setting I can update to allow these column headers to display?
    Example of what I get (No Headings)
    
    TOM SMITH          12345
    JANE DOE           34355
    
    Example of what I expect (with Headings)
    
    EMPLOYEE           EMPLOYEE NO
    TOM SMITH          12345
    JANE DOE           34355
    Thank you

    More likely:

    SET THE POSITION

    into force or / and

    SET PAGESIZE 0

    is in effect.

    SY.

  • Error permissions if the Script is run more than once with close Diadem

    I'm in REAL trouble here and need HELP...

    I get a permissions error message when I try to run my scripts multiple times with close Diadem 2011.

    Call scriptinclude ("D:\_Calterm_Configuration_Files\Technical_Information\DIAdem_Scripts\Importing Logs_CaltermIII_Local.VBS data")

    Error is around this part of the script:

    '-------------------------------------------------------------------------------------
    ' * GetFilePaths() * * NEW feature *.
    '-------------------------------------------------------------------------------------
    Function GetFilePaths (DefaultDir, ExtFilter, MultipleDir, Msg)
    Dim i, k, f, fso, iMax, FileListPath, StartIdx, CurrFiles, list of files
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    "Promt the user select the ASCII files to load with a file dialog box
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    FileListPath = AutoActPath & "FileDlgList.asc".
    Set fso = CreateObject ("Scripting.FileSystemObject")
    StartIdx = 0
    ReDim FileList (0)
    Do "to ensure that (DlgState ="IDCancel")
    Call the FileNameGet ('ALL', ' FileRead "DefaultDir, ExtFilter, FileListPath, 1, Msg" ")
    IF (DlgState = "IDCancel") THEN Exit Do
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    'Read in the saved list or file selected in the file dialog box in FileList()

    This next line is where the ERROR occurs

    The value of f = fso. OpenTextFile (FileListPath, 1, True) ' f.ReadAll returns the content of the file
    CurrFiles = Split (vbCRLF & f.ReadAll + "\n") ' set the lines of the file into an array
    f.Close ' close the file
    iMax = UBound (CurrFiles)
    IF iMax > 0 AND Trim (CurrFiles (iMax)) = "" THEN
    iMax = iMax - 1
    ReDim Preserve CurrFiles (iMax)
    END IF
    Call BubbleSort (CurrFiles) ' sort the array of file names in alphabetical order
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    "Append current file any previous file dialog selection dialog box selections"
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    IF iMax< 1="" then="" imax="">
    ReDim Preserve FileList (k + iMax)
    FOR i = 1 TO iMax
    k = k + 1
    FileList (k) = CurrFiles (i)
    NEXT ' I
    IF MultipleDir <> TRUE, THEN Exit Do ' force 1 only dialog box, good, if all desired files are in the same folder
    Loop "until it as (DlgState ="IDCancel")
    GetFilePaths = list of files
    End Function ' GetFilePaths()

    266 error 18:18:34:
    Error in (line: column 8: 1):
    Error in (line: 140, column: 5):
    Permission denied

    I can send the script and the file I'm loading if it would help.

    OK, I played with it a little more and found that if I used global Sun (autoactpath) and then specified what that has been set.  All my problems went away.  I just added at the beginning of my first script and I have 15 different texts, I throw the box of a dialogue and now all glitches little with that I was just to the top went.  everything that I used autoactpath with has been fixed.

    Thanks for the help.

  • launchd works but the script is run?

    I have looked for answers here, but could not find them. So my question is this: I created a launchd like this: com.schedule.arp.plist

    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.schedule.arp.plist</string> <key>ProgramArguments</key> <array> <string>/Library/Scripts/arp.sh</string> </array> <key>StartInterval</key> <integer>300</integer> </dict> </plist>

    I can see that the computer runs every 5 minutes as it should. Here is the console:

    Apr 21 09:46:39 eps-amsterdam com.apple.xpc.launchd [1] (com.schedule.arp.plist [2946]): Service came out with abnormal code: 1 Apr 21 09:51:39 eps-amsterdam com.apple.xpc.launchd [1] (com.schedule.arp.plist [3274]): Service came out with abnormal code: 1 Apr 21 09:56:39 eps-amsterdam com.apple.xpc.launchd [1] (com.schedule.arp.plist [3554]): Service came out with abnormal code: 1 Apr 21 10:01:39 eps-amsterdam com.apple.xpc.launchd [1] (com.schedule.arp.plist [4156]): Service came out with abnormal code: 1

    The actual script is here:/Library/Scripts/arp.sh it contains the following:

    #!/bin/sh sudo php56 /opt/local/apache2/htdocs/epsamsterdam/arpreach_full/a.php cli/auto

    But this last part is not executed? Manual to hit this command in the terminal works very well. So where should I go wrong? I am running to El Capitan 10.11.4

    First, if the job should run as root, it should be in/Library/LaunchDaemons with appropriate permissions (owned by and writable only by root). Eliminate the 'sudo' to the script. Provide the full paths to 'php56' and ' cli/auto '.

  • toggle is plotted on a graph when the application is running

    Hello

    I'm trying to figure out how to make a graph that allows the user to select which elements are drawn when the application runs.  I want all data to appear on the same graph with the same x and axis of ordinates and maybe some checked boxes or something to allow easily what items are displayed.

    Thank you

    Gary

    1... don't use two nodes in separate property for the PLOT VISIBLE and Act implementation CHART.  If you do that, you don't know who runs first, - they are independent.  Use a single property node (stretch it to include two properties).  The top property must be ACTPLOT, 2nd one, be VISIBLE TRACE.  In this way, it is guaranteed to run in the order you need.

    2 you are the cluster of box check ONCE at the beginning of the program of reading and using the same value each time.  You want to read the cluster when the CHANGE occurs, EVENT that is, in the case of the EVENT.  You can read the terminal, or read the NEW VALUE property for the event, so be it is OK.  But you have to read the new value, not the old one.

    3... you also read your buttons ONCE at the beginning of the program, and re - trace the same value whenever you draw. You need to know when you need to draw and THEN read them and lead the chart.

    4... If you set the timeout to, say, 100 mSec, in the TIMEOUT case, read the buttons and drive the graph, then you will have a living picture that updates approximately every 100 milliseconds.  Implement #1 and #2, and you can turn on and outside plots.

    I say "Roughly" because of the way the timeout works - if you wait 99 mSec and then click on a checkbox, the wins Manager check box and the timer 100mSec STARTS OVER when you get to the next iteration.

    If you want the table to day exactly every 100 msec and then use time separate loop, with a WAIT TIL NEXT MSEC MULTIPLE.  Do the waiting, read buttons, drive chart and repeat.  A separate loop will not be disturbed by events in the loop of the user interface.

  • The battery status icon does not display the symbol of the AC power cord when the laptop is running on the current and recharge

    I have a Compaq presario with Windows 7 Home Premium 64-bit. A few years after an update of Windows, the status of battery in the systray ICON ceased to display the amount of time left on the battery and it stopped display the symbol of the AC power cord when it was being turned off of the AC adapter.  If I remove the battery, then the cord appears.  Put it back in the slot and the rope faints and I have the same shape of rectangle get you if the computer is running on battery only.  Any ideas how I can get the cord to display when AC power feeds the laptop.

    The accumulator is recharged, but there is no busy indication, apart from the height of solid white fill.

    Hi Graeme,

    Thanks again for the update.

    Laptop computer should turn on without the battery when it is connected directly to the power source. As Techgod said it could be a hardware problem, it is possible that the problem is with the battery.

    I suggest you to contact the manufacturer of the laptop to get help.

    Compaq support
    http://www.Compaq.com/CPQ-country/cpq_support.html

    Thank you

Maybe you are looking for