Problems of syntax with a Variable/function/procedure

Hello
Some time ago I had advice how to define a simple (not stored) procedure within a PL/SQL Script, see procedure but not stored now, I tried to expand the sample by the use of some additional variables and a function instead of a procedure. The result expected from the following (pseudo) - code is very clear, but I get tons of errors due to problems of syntax. Of course I don't have need of all these variables in the example below, but it's the syntax I will need later. Maybe you can point me to an example which has a similar structure.

DECLARE  

    -- Output Comment and 2*Input
    PROCEDURE OutputDouble(SingleValue IN Number, MyComment IN VARCHAR) IS
        variable MyTextResult VARCHAR(100); 
    BEGIN
        SELECT MyComment || ' ' || to_char(2 * SingleValue)) into MyTextResult from dual;
        dbms_output.put_line(MyResult);
    END;
    
    -- Return Product of Val1 and Val2
    FUNCTION MyProduct(Val1 IN NUMBER, Val2 IN NUMBER) IS
        variable MyNumResult Number := 0;
        returns Number
    BEGIN
        MyNumResult := Val1 *Val2;
        return MyNumResult;
    END;

   -- Definitions
   variable MyRes  Number;
   variable MyVal3 Number := 3;
   variable MyTxt3 VARCHAR(30) := 'Text mit 3';
 
BEGIN
    
    -- Main process block
    OutputDouble(MyVal3, MyTxt3);
    MyRes = MyProduct(MyVal3, 5);
    dbms_output.put_line('Produkt: ' || to_char(MyRes)); 
    
END;
/
Published by: netaktiv on 21.02.2012 13:24

Published by: netaktiv on 21.02.2012 13:25

(1) If you declare procedures in an anonymous PL/SQL block (which itself is not a particularly good way to organize the code), the procedure for declarations must come after all the variables are declared.
(2) you do not use the keyword VARIABLE when you declare variables in PL/SQL
(3) you have a fence extra paren in the SELECT statement in the OutputDouble that needs to be removed
(4) the appeal dbms_output.put_line in OutputDouble should, without doubt, refer to the variable local MyTextResult, not same that does not exist.
(5) the RETURN clause in the declaration of a function must be unique and must come before the IS
(6) add a little more indented is useful for the following code.

Put it all together, something like this works

SQL> ed
Wrote file afiedt.buf

  1  DECLARE
  2     -- Definitions
  3     MyRes  Number;
  4     MyVal3 Number := 3;
  5     MyTxt3 VARCHAR(30) := 'Text mit 3';
  6      -- Output Comment and 2*Input
  7      PROCEDURE OutputDouble(SingleValue IN Number, MyComment IN VARCHAR)
  8      IS
  9          MyTextResult VARCHAR(100);
 10      BEGIN
 11          SELECT MyComment || ' ' || to_char(2 * SingleValue)
 12            into MyTextResult
 13            from dual;
 14          dbms_output.put_line(MyTextResult);
 15      END;
 16      -- Return Product of Val1 and Val2
 17      FUNCTION MyProduct(Val1 IN NUMBER, Val2 IN NUMBER)
 18          return Number
 19      IS
 20          MyNumResult Number := 0;
 21      BEGIN
 22          MyNumResult := Val1 *Val2;
 23          return MyNumResult;
 24      END;
 25  BEGIN
 26      -- Main process block
 27      OutputDouble(MyVal3, MyTxt3);
 28      MyRes := MyProduct(MyVal3, 5);
 29      dbms_output.put_line('Produkt: ' || to_char(MyRes));
 30* END;
SQL> /
Text mit 3 6
Produkt: 15

As I said above, however, this isn't a particularly good way to code generation. You are much better (a lot!) create a procedure as OutputDouble first just debugging that, then create a function like MyProduct, debugging that and then just try to put it all together. Creating a single block that declares its own procedures and functions only makes it harder to debug and harder to generate the code of the work by the Assembly and testing of small building blocks.

Justin

Tags: Database

Similar Questions

  • Problem of navigation with dynamic variable list

    Hi all

    I'm a bit in stock with a small question (maybe). I am looking for a way to put the variable to a list of navigation in the same page. Can it is where my navigation list is pointed: f? p = & APP_ID.:20: & SESSION. : & DEBUG. : P20_3, P20_1, P20_2: #État #, #Année accountant #, #Période accountant #:.
    I need to inherit the value (#État #, #Année accountant #, #Période accountant # :) a SQL in the main region (list are in a subregion).)

    Could help me with this please?

    Thanks in advance!

    Eric

    844999,

    You will have to wait until 4.1 Apex

    It is one of the new features 'dynamic lists '.

    However, you can replicate such a list, if you create a report model that looks the same in a list and then create a report with this list.

    Kind regards
    Richard

  • Problems of execution of a SQL function with a variable in the WHERE clause

    Hello world!

    I have programmed a function that returns a boolean value based on the result of the SQL. It's the function:

    FUNCTION existe_secuencial (seq_name VARCHAR2) RETURN AS BOOLEAN

    cursor c2 is SELECT FROM all_sequences WHERE upper (sequence_name) = sequence_name' | seq_name | ' ;

    BEGIN

    OPEN c2;

    DBMS_OUTPUT. Put_line (nombre_seq);

    Get c2 INTO kk;

    If c2% NOTFOUND = True THEN

    RETURNS false;

    on the other

    RETURNS true;

    end if;

    END existe_secuencial;

    And I give the floor to the function of a procedure in this way:

    IF existe_secuencial ("SEQ_ARQUETA") = True THEN

    DBMS_OUTPUT. Put_line ('exists');

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("' NOT exists");

    END IF;

    The probrem that this SQL is forced to return results because this sequence exists in the comic book, but is not, return me the FALSE value. What makes me mad is that if I change the second line of the function in this way:

    > > cursor c2 is SELECT FROM all_sequences WHERE upper (sequence_name) sequence_name ="SEQ_ARQUETA";

    It works find and return of sequence existing (real)

    Can someone help me please, I'm quite desperate to find what is the problem with that because I do not understand why if I built the slider with a variable returns no results so that if I do write it works...

    Thanks in advance!

    Itziar

    Frame you your variable in quotes, which makes the string literal ' |. ' seq_name | "rather than the content of the variable.

    I think that something like this would be an improvement.

    function existe_secuencial (seq_name VARCHAR2) return a Boolean value as

    number of exist_check: = 0;

    Start

    Start

    Select 1

    in exist_check

    of all_sequences

    where upper (sequence_name) = upper (seq_name);

    exception

    When no_data_found then

    null;

    end;

    return (exist_check = 1);

    end existe_secuencial;

  • Problem with the GetParameter() function in IScript

    Hello

    I am facing a problem with the GetParameter() function in IScript. I created a URL below and appellant IScript

    GenerateScriptContentURL ("EMPLOYEE", "MFC", Record.WEBLIB_REPT_SJ, Field.ISCRIPT1, "FieldFormula", "IScript_GetAttachment"). "? FileName =' | & AttachUserFileURL;

    before generating URLS, I'm just encrypt the name of the ZIP file & assignment in the variable string & AttachUserFileURL I concatenated in link above.

    and try to take the value encrypted text of decryption by %Request.GetParameter("FileName") in IScript who isn't able to get special characters such as +, is.

    Please get this.

    Thank you

    Edited by: 936729 may 25, 2012 03:35

    + and = are allowed in URLS. You just have to URL encode like this EncodeURLForQueryString(&AttachUserFileURL) before adding them to your URL:

    GenerateScriptContentURL("EMPLOYEE", "HRMS", Record.WEBLIB_REPT_SJ, Field.ISCRIPT1, "FieldFormula", "IScript_GetAttachment") | "?FileName=" | EncodeURLForQueryString(&AttachUserFileURL);
    

    Here is the entrance of PeopleBook for EncodeURLForQueryString:

    http://docs.Oracle.com/CD/E28394_01/pt852pbh1/Eng/psbooks/TPCL/htm/tpcl02.htm#_6453b1b1_1355ab71343__503e

  • The syntax Checker bug with long PHP functions.

    I have two differrent pages that give the same type of bugs when opening the page with Dreamweaver CS5. I built a web application with PHP, HTML, CSS, MySQL and Javascirpt. There are many forms throughout the site and many forms are very long. For these specific pages that give a syntax error HTML form is inside a PHP for loop to repeat a desired number of times. I checked that there is not a syntax error, and the page works perfectly without php, html, css or javascript errors. The syntax error goes away if I close the loop PHP earlier in the script, but then I have actually a syntax with PHP and dreamweaver error says my code is perfect?

    <?php

     

              //this page is not accessable via broswer url

              if (!defined("_VALID_PHP"))

                        die('Direct access to this location is not allowed.');

     

              //Set session data from POST

              $_SESSION["intake"]["students"]["drug_of_choice"] = $_POST["drug_of_choice"];

              $_SESSION["intake"]["students"]["first_contact"] = $_POST["first_contact_yr"]."-".$_POST["first_contact_mo"]."-".$_POST["first_contact_da"];

              $_SESSION["intake"]["intakes"]["referral_source"] = $_POST["referral_source"];

              $_SESSION["intake"]["intakes"]["referral_reason"] = $_POST["referral_reason"];

              $_SESSION["intake"]["students"]["gender"] = $_POST["gender"];

              $_SESSION["intake"]["students"]["maiden_name"] = $_POST["maiden_name"];

              $_SESSION["intake"]["students"]["race"] = $_POST["race"];

              $_SESSION["intake"]["students"]["dl_state"] = $_POST["dl_state"];

              $_SESSION["intake"]["students"]["dl_num"] = $_POST["dl_num"];

              $_SESSION["intake"]["students"]["phone_number"] = $_POST["phone_number"];

              $_SESSION["intake"]["students"]["cell_number"] = $_POST["cell_number"];

              $_SESSION["intake"]["students"]["work_number"] = $_POST["work_number"];

              $_SESSION["intake"]["students"]["other_fax_number"] = $_POST["other_fax_number"];

              $_SESSION["intake"]["students"]["email"] = $_POST["email"];

              $_SESSION["intake"]["addresses"]["line_1"] = $_POST["line_1"];

              $_SESSION["intake"]["addresses"]["line_2"] = $_POST["line_2"];

              $_SESSION["intake"]["addresses"]["line_3"] = $_POST["line_3"];

              $_SESSION["intake"]["addresses"]["city"] = $_POST["city"];

              ($_POST["state_province_country"]=="Other") ? $_SESSION["intake"]["addresses"]["state_province_country"] =  $_POST["other_state"]: $_SESSION["intake"]["addresses"]["state_province_country"] = $_POST["state_province_country"];

              $_SESSION["intake"]["addresses"]["post_code"] = $_POST["post_code"];

              $_SESSION["intake"]["addresses"]["country"] = $_POST["country"];

              $_SESSION["intake"]["addresses"]["comments"] = $_POST["comments"];

     

              //how many contacts adding

              $num_contacts = $_POST["num_contacts"];

     

              //Set Page variables from session data

              $CARF_ID = $_SESSION["intake"]["students"]["carf_id"];

              $First_Name = $_SESSION["intake"]["students"]["first_name"];

              $Middle_Name = $_SESSION["intake"]["students"]["middle_name"];

              $Last_Name = $_SESSION["intake"]["students"]["last_name"];

     

    ?>

                        <div id="boxAddStudentDet" class="boxes">

                                  <div class="boxHeader">

                                      <div id="addStudentIcon" class="boxIcons">

                                </div>

                                <div class="boxTitle">

                                          <h2>Add Contacts for <?php echo $CARF_ID.": ".$First_Name." ".$Middle_Name." ".$Last_Name; ?></h2>

                                </div>

                                <div class="boxSliderBtns">

                                </div>

                            </div>

                            <div class="boxContent">

                                      <form id="addStudDet" name="addStudDet" action="addstudent.php?b=03" onsubmit="return validateForm(this,'comments[]','','','','','','','','email');" method="post" >

                                    <table id="StudDetformTable" class="full">

                                              <?php for($i=0;$i<$num_contacts;$i++){ ?>

                                        <tr>

                                                  <td colspan="2"><h3><b>Add New Contact</b></h3></td>

                                        </tr>

                                        <tr>

                                                  <td colspan="2"><h3>Contact's First Name </h3></td>

                                        </tr>

                                        <tr>

                                                  <td class="column1a"><input name="first_name[]" id="kin_f_name" type="text" /></td>

                                        </tr>

                                        <tr>

                                                  <td colspan="2"><h3>Contact's Last Name </h3></td>

                                        </tr>

                                        <tr>

                                                  <td class="column1a"><input name="last_name[]" id="kin_l_name" type="text" /></td>

                                        </tr>

                                        <tr>

                                                  <td class="column1a"><p>

                                                      <input type="checkbox" value="<?php print $i; ?>" name="telephone_release[]" />  Telephone Release<br />

                                                <input type="radio" value="<?php print $i; ?>" name="primary_contact" />  Primary Contact<br />

                                                <input type="checkbox" value="<?php print $i; ?>" name="emergency_contact[]" />  Emergency Contact<br />

                                                <input type="checkbox" value="<?php print $i; ?>" name="financier[]" />  Financier<br />

                                                <input type="checkbox" value="<?php print $i; ?>" name="send_ed_pack[]" />  Send Drug Education Pack

                                            </p></td>

                                        </tr>

                                        <tr>

                                                  <td colspan="2"><h3>Contact's Relationship </h3></td>

                                        </tr>

                                        <tr>

                                                  <td class="column1a">

                                                      <select name="relationship[]" id="kin_relation">

                                                          <option value=""></option>

                                                    <option value="Spouse">Spouse</option>

                                                    <option value="Biological Mother">Mother (Biological)</option>

                                                    <option value="Biological Father">Father (Biological)</option>

                                                    <option value="Daughter">Daughter</option>

                                                    <option value="Son">Son</option>

                                                    <option value="Sister">Full Sister</option>

                                                    <option value="Brother">Full Brother</option>

                                                    <option value="Aunt">Aunt</option>

                                                    <option value="Uncle">Uncle</option>

                                                    <option value="Grandmother">Grandmother</option>

                                                    <option value="Grandfather">Grandfather</option>

                                                    <option value="Step Mother">Step Mother</option>

                                                    <option value="Step Father">Step Father</option>

                                                    <option value="Half Sister">Half Sister</option>

                                                    <option value="Half Brother">Half Brother</option>

                                                    <option value="Step Sister">Step Sister</option>

                                                    <option value="Step Brother">Step Brother</option>

                                                    <option value="Mother in law">Mother-In-Law</option>

                                                    <option value="Father in law">Father-In-Law</option>

                                                    <option value="Sister in law">Sister-In-Law</option>

                                                    <option value="Brother in law">Brother-In-Law</option>

                                                    <option value="Daughter in law">Daughter-In-Law</option>

                                                    <option value="Son in law">Son-In-Law</option>

                                                    <option value="Ex-spouse">Ex-spouse</option>

                                                    <option value="Co-worker">Co-worker</option>

                                                    <option value="Friend">Friend</option>

                                                    <option value="Other Relative">Other Relative (Specify in Comments)</option>

                                                    <option value="Other">Other (Specify in Comments)</option>

                                                      </select>

                                            </td>

                                        </tr>

                                        <tr>

                                                  <td colspan="2"><h3>Contact's Phone Number</h3></td>

                                        </tr>

                                        <tr>

                                                  <td class="column1a"><input name="k_phnum_<?php print $i; ?>" id="k_phnum_<?php print $i; ?>" type="radio" value="yes" onClick="notAnsweredQues('k_phNumber_<?php print $i; ?>', this, true);" /><input type="text" name="phone_number[]" id="k_phNumber_<?php print $i; ?>" onkeydown="setVal('k_phnum_<?php print $i; ?>')" onkeypress="return onlyChar(event,true,false,false,false,'','');" />  <input name="k_phnum_<?php print $i; ?>" type="radio" onClick="notAvailableQues('k_phNumber_<?php print $i; ?>', this);" />No Number</td>

                                            <td class="alignright"><input name="k_phnum_<?php print $i; ?>" type="radio" onClick="notAnsweredQues('k_phNumber_<?php print $i; ?>', this);" />Question Not Answered</td>

                                        </tr>

                                        <tr>

                                                  <td colspan="2"><h3>Contact's Cell Phone Number</h3></td>

                                        </tr>

                                        <tr>

                                                  <td class="column1a"><input name="k_cell_phnum_<?php print $i; ?>" id="k_cell_phnum_<?php print $i; ?>" type="radio" onClick="notAnsweredQues('k_cellNumber_<?php print $i; ?>', this, true);" /><input type="text" name="cell_number[]" id="k_cellNumber_<?php print $i; ?>" onkeydown="setVal('k_cell_phnum_<?php print $i; ?>')" onkeypress="return onlyChar(event,true,false,false,false,'','');" />  <input name="k_cell_phnum_<?php print $i; ?>" type="radio" onClick="notAvailableQues('k_cellNumber_<?php print $i; ?>', this);" />No Number</td>

                                            <td class="alignright"><input name="k_cell_phnum_<?php print $i; ?>" type="radio" onClick="notAnsweredQues('k_cellNumber_<?php print $i; ?>', this);" />Question Not Answered</td>

                                        </tr>

                                        <tr>

                                                  <td colspan="2"><h3>Contact's Other Phone Number</h3></td>

                                        </tr>

                                        <tr>

                                                  <td class="column1a"><input name="k_other_phnum_<?php print $i; ?>" id="k_other_phnum_<?php print $i; ?>" type="radio" onClick="notAnsweredQues('k_otherNumber_<?php print $i; ?>', this, true);" /><input type="text" name="other_number[]" id="k_otherNumber_<?php print $i; ?>" onkeydown="setVal('k_other_phnum_<?php print $i; ?>')" onkeypress="return onlyChar(event,true,false,false,false,'','');" />  <input name="k_other_phnum" type="radio" onClick="notAvailableQues('k_otherNumber_<?php print $i; ?>', this);" />No Number</td>

                                            <td class="alignright"><input name="k_other_phnum_<?php print $i; ?>" type="radio" onClick="notAnsweredQues('k_otherNumber_<?php print $i; ?>', this);" />Question Not Answered</td>

                                        </tr>

                                        <tr>

                                                  <td colspan="2"><h3>Contact's Email Address</h3></td>

                                        </tr>

                                        <tr>

                                                  <td class="column1a"><input name="k_emailSel_<?php print $i; ?>" id="k_emailSel_<?php print $i; ?>" type="radio" onClick="notAnsweredQues('k_email_<?php print $i; ?>', this, true);" /><input name="email[]" id="k_email_<?php print $i; ?>" type="text" onkeydown="setVal('k_emailSel_<?php print $i; ?>')" onblur="validateEmail(this)" />  <input name="k_emailSel_<?php print $i; ?>" type="radio" onClick="notAvailableQues('k_email_<?php print $i; ?>', this);" />No Email</td>

                                            <td class="alignright"><input name="k_emailSel_<?php print $i; ?>" type="radio" onClick="notAnsweredQues('k_email_<?php print $i; ?>', this);" />Question Not Answered</td>

                                        </tr>

                                        <tr>

                                                  <td><h3>What is the student's address?</h3></td>

                                        </tr>

                                        <tr>

                                                  <td class="indentation"><input type="text" name="line_1[]" id="Line_1_<?php print $i; ?>" value="Line 1" style="width:450px;" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" /></td>

                                        </tr>

                                        <tr>

                                                  <td class="indentation"><input type="text" name="line_2[]" id="Line_2_<?php print $i; ?>" value="Line 2" style="width:450px;" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" /></td>

                                        </tr>

                                        <tr>

                                                  <td class="indentation"><input type="text" name="line_3[]" id="Line_3_<?php print $i; ?>" value="Line 3" style="width:450px;" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" /></td>

                                        </tr>

                                        <tr>

                                                  <td class="indentation">

                                                <input type="text" name="city[]" id="City_<?php print $i; ?>" value="City" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" /> 

                                                <select name="state_province_country[]" id="State_<?php print $i; ?>" onchange="

                                                if(this.value==''){

                                                          document.getElementById('otherState_<?php print $i; ?>').style.display = 'none';

                                                    document.getElementById('otherState_<?php print $i; ?>').value='Other State';

                                                    setInput('Country_<?php print $i; ?>','','select',false);

                                                } else if(this.value=='Other'){

                                                          document.getElementById('otherState_<?php print $i; ?>').style.display = 'inline-block';

                                                    document.getElementById('otherState_<?php print $i; ?>').value='';

                                                    setInput('Country_<?php print $i; ?>','','select',false);

                                                }else{

                                                          document.getElementById('otherState_<?php print $i; ?>').style.display = 'none';

                                                    document.getElementById('otherState_<?php print $i; ?>').value='Other State';

                                                    setInput('Country_<?php print $i; ?>','U.S.A.','select',true);

                                                }" >

                                                    <option value="">Select State</option>

                                                    <option value="AL">Alabama</option>

                                                    <option value="AK">Alaska</option>

                                                    <option value="AZ">Arizona</option>

                                                    <option value="AR">Arkansas</option>

                                                    <option value="CA">California</option>

                                                    <option value="CO">Colorado</option>

                                                    <option value="CT">Connecticut</option>

                                                    <option value="DE">Delaware</option>

                                                    <option value="FL">Florida</option>

                                                    <option value="GA">Georgia</option>

                                                    <option value="HI">Hawaii</option>

                                                    <option value="ID">Idaho</option>

                                                    <option value="IL">Illinois</option>

                                                    <option value="IN">Indiana</option>

                                                    <option value="IA">Iowa</option>

                                                    <option value="KS">Kansas</option>

                                                    <option value="KY">Kentucky</option>

                                                    <option value="LA">Louisiana</option>

                                                    <option value="ME">Maine</option>

                                                    <option value="MD">Maryland</option>

                                                    <option value="MA">Massachusetts</option>

                                                    <option value="MI">Michigan</option>

                                                    <option value="MN">Minnesota</option>

                                                    <option value="MS">Mississippi</option>

                                                    <option value="MO">Missouri</option>

                                                    <option value="MT">Montana</option>

                                                    <option value="NE">Nebraska</option>

                                                    <option value="NV">Nevada</option>

                                                    <option value="NH">New Hampshire</option>

                                                    <option value="NJ">New Jersey</option>

                                                    <option value="NM">New Mexico</option>

                                                    <option value="NY">New York</option>

                                                    <option value="NC">North Carolina</option>

                                                    <option value="ND">North Dakota</option>

                                                    <option value="OH">Ohio</option>

                                                    <option value="OK">Oklahoma</option>

                                                    <option value="OR">Oregon</option>

                                                    <option value="PA">Pennsylvania</option>

                                                    <option value="RI">Rhode Island</option>

                                                    <option value="SC">South Carolina</option>

                                                    <option value="SD">South Dakota</option>

                                                    <option value="TN">Tennessee</option>

                                                    <option value="TX">Texas</option>

                                                    <option value="UT">Utah</option>

                                                    <option value="VT">Vermont</option>

                                                    <option value="VA">Virginia</option>

                                                    <option value="WA">Washington</option>

                                                    <option value="WV">West Virginia</option>

                                                    <option value="WI">Wisconsin</option>

                                                    <option value="WY">Wyoming</option>

                                                    <option value="Other">Other Specify:</option>

                                                </select>

                                                <input type="text" name="other_state[]" id="otherState_<?php print $i; ?>" value="Other State" style="display:none;" />

                                                <input type="text" name="post_code[]" id="Zip_PostalCode_<?php print $i; ?>" value="ZIP" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" />

                                            </td>

                                        </tr>

                                        <tr>

                                                  <td><h3>Country</h3></td>

                                        </tr>

                                        <tr>

                                                  <td>

                                                <select name="country[]" id="Country_<?php print $i; ?>">

                                                    <option value="">Select Country</option>

                                                    <option value="U.S.A.">United States of America</option>

                                                    <option value="Afganistan">Afghanistan</option>

                                                    <option value="Albania">Albania</option>

                                                    <option value="Algeria">Algeria</option>

                                                    <option value="American Samoa">American Samoa</option>

                                                    <option value="Andorra">Andorra</option>

                                                    <option value="Angola">Angola</option>

                                                    <option value="Anguilla">Anguilla</option>

                                                    <option value="Antigua &amp; Barbuda">Antigua &amp; Barbuda</option>

                                                    <option value="Argentina">Argentina</option>

                                                    <option value="Armenia">Armenia</option>

                                                    <option value="Aruba">Aruba</option>

                                                    <option value="Australia">Australia</option>

                                                    <option value="Austria">Austria</option>

                                                    <option value="Azerbaijan">Azerbaijan</option>

                                                    <option value="Bahamas">Bahamas</option>

                                                    <option value="Bahrain">Bahrain</option>

                                                    <option value="Bangladesh">Bangladesh</option>

                                                    <option value="Barbados">Barbados</option>

                                                    <option value="Belarus">Belarus</option>

                                                    <option value="Belgium">Belgium</option>

                                                    <option value="Belize">Belize</option>

                                                    <option value="Benin">Benin</option>

                                                    <option value="Bermuda">Bermuda</option>

                                                    <option value="Bhutan">Bhutan</option>

                                                    <option value="Bolivia">Bolivia</option>

                                                    <option value="Bonaire">Bonaire</option>

                                                    <option value="Bosnia &amp; Herzegovina">Bosnia &amp; Herzegovina</option>

                                                    <option value="Botswana">Botswana</option>

                                                    <option value="Brazil">Brazil</option>

                                                    <option value="British Indian Ocean Ter">British Indian Ocean Ter</option>

                                                    <option value="Brunei">Brunei</option>

                                                    <option value="Bulgaria">Bulgaria</option>

                                                    <option value="Burkina Faso">Burkina Faso</option>

                                                    <option value="Burundi">Burundi</option>

                                                    <option value="Cambodia">Cambodia</option>

                                                    <option value="Cameroon">Cameroon</option>

                                                    <option value="Canada">Canada</option>

                                                    <option value="Canary Islands">Canary Islands</option>

                                                    <option value="Cape Verde">Cape Verde</option>

                                                    <option value="Cayman Islands">Cayman Islands</option>

                                                    <option value="Central African Republic">Central African Republic</option>

                                                    <option value="Chad">Chad</option>

                                                    <option value="Channel Islands">Channel Islands</option>

                                                    <option value="Chile">Chile</option>

                                                    <option value="China">China</option>

                                                    <option value="Christmas Island">Christmas Island</option>

                                                    <option value="Cocos Island">Cocos Island</option>

                                                    <option value="Colombia">Colombia</option>

                                                    <option value="Comoros">Comoros</option>

                                                    <option value="Congo">Congo</option>

                                                    <option value="Cook Islands">Cook Islands</option>

                                                    <option value="Costa Rica">Costa Rica</option>

                                                    <option value="Cote DIvoire">Cote D'Ivoire</option>

                                                    <option value="Croatia">Croatia</option>

                                                    <option value="Cuba">Cuba</option>

                                                    <option value="Curaco">Curacao</option>

                                                    <option value="Cyprus">Cyprus</option>

                                                    <option value="Czech Republic">Czech Republic</option>

                                                    <option value="Denmark">Denmark</option>

                                                    <option value="Djibouti">Djibouti</option>

                                                    <option value="Dominica">Dominica</option>

                                                    <option value="Dominican Republic">Dominican Republic</option>

                                                    <option value="East Timor">East Timor</option>

                                                    <option value="Ecuador">Ecuador</option>

                                                    <option value="Egypt">Egypt</option>

                                                    <option value="El Salvador">El Salvador</option>

                                                    <option value="Equatorial Guinea">Equatorial Guinea</option>

                                                    <option value="Eritrea">Eritrea</option>

                                                    <option value="Estonia">Estonia</option>

                                                    <option value="Ethiopia">Ethiopia</option>

                                                    <option value="Falkland Islands">Falkland Islands</option>

                                                    <option value="Faroe Islands">Faroe Islands</option>

                                                    <option value="Fiji">Fiji</option>

                                                    <option value="Finland">Finland</option>

                                                    <option value="France">France</option>

                                                    <option value="French Guiana">French Guiana</option>

                                                    <option value="French Polynesia">French Polynesia</option>

                                                    <option value="French Southern Ter">French Southern Ter</option>

                                                    <option value="Gabon">Gabon</option>

                                                    <option value="Gambia">Gambia</option>

                                                    <option value="Georgia">Georgia</option>

                                                    <option value="Germany">Germany</option>

                                                    <option value="Ghana">Ghana</option>

                                                    <option value="Gibraltar">Gibraltar</option>

                                                    <option value="Great Britain">Great Britain</option>

                                                    <option value="Greece">Greece</option>

                                                    <option value="Greenland">Greenland</option>

                                                    <option value="Grenada">Grenada</option>

                                                    <option value="Guadeloupe">Guadeloupe</option>

                                                    <option value="Guam">Guam</option>

                                                    <option value="Guatemala">Guatemala</option>

                                                    <option value="Guinea">Guinea</option>

                                                    <option value="Guyana">Guyana</option>

                                                    <option value="Haiti">Haiti</option>

                                                    <option value="Hawaii">Hawaii</option>

                                                    <option value="Honduras">Honduras</option>

                                                    <option value="Hong Kong">Hong Kong</option>

                                                    <option value="Hungary">Hungary</option>

                                                    <option value="Iceland">Iceland</option>

                                                    <option value="India">India</option>

                                                    <option value="Indonesia">Indonesia</option>

                                                    <option value="Iran">Iran</option>

                                                    <option value="Iraq">Iraq</option>

                                                    <option value="Ireland">Ireland</option>

                                                    <option value="Isle of Man">Isle of Man</option>

                                                    <option value="Israel">Israel</option>

                                                    <option value="Italy">Italy</option>

                                                    <option value="Jamaica">Jamaica</option>

                                                    <option value="Japan">Japan</option>

                                                    <option value="Jordan">Jordan</option>

                                                    <option value="Kazakhstan">Kazakhstan</option>

                                                    <option value="Kenya">Kenya</option>

                                                    <option value="Kiribati">Kiribati</option>

                                                    <option value="Korea North">Korea North</option>

                                                    <option value="Korea Sout">Korea South</option>

                                                    <option value="Kuwait">Kuwait</option>

                                                    <option value="Kyrgyzstan">Kyrgyzstan</option>

                                                    <option value="Laos">Laos</option>

                                                    <option value="Latvia">Latvia</option>

                                                    <option value="Lebanon">Lebanon</option>

                                                    <option value="Lesotho">Lesotho</option>

                                                    <option value="Liberia">Liberia</option>

                                                    <option value="Libya">Libya</option>

                                                    <option value="Liechtenstein">Liechtenstein</option>

                                                    <option value="Lithuania">Lithuania</option>

                                                    <option value="Luxembourg">Luxembourg</option>

                                                    <option value="Macau">Macau</option>

                                                    <option value="Macedonia">Macedonia</option>

                                                    <option value="Madagascar">Madagascar</option>

                                                    <option value="Malaysia">Malaysia</option>

                                                    <option value="Malawi">Malawi</option>

                                                    <option value="Maldives">Maldives</option>

                                                    <option value="Mali">Mali</option>

                                                    <option value="Malta">Malta</option>

                                                    <option value="Marshall Islands">Marshall Islands</option>

                                                    <option value="Martinique">Martinique</option>

                                                    <option value="Mauritania">Mauritania</option>

                                                    <option value="Mauritius">Mauritius</option>

                                                    <option value="Mayotte">Mayotte</option>

                                                    <option value="Mexico">Mexico</option>

                                                    <option value="Midway Islands">Midway Islands</option>

                                                    <option value="Moldova">Moldova</option>

                                                    <option value="Monaco">Monaco</option>

                                                    <option value="Mongolia">Mongolia</option>

                                                    <option value="Montserrat">Montserrat</option>

                                                    <option value="Morocco">Morocco</option>

                                                    <option value="Mozambique">Mozambique</option>

                                                    <option value="Myanmar">Myanmar</option>

                                                    <option value="Nambia">Nambia</option>

                                                    <option value="Nauru">Nauru</option>

                                                    <option value="Nepal">Nepal</option>

                                                    <option value="Netherland Antilles">Netherland Antilles</option>

                                                    <option value="Netherlands">Netherlands (Holland, Europe)</option>

                                                    <option value="Nevis">Nevis</option>

                                                    <option value="New Caledonia">New Caledonia</option>

                                                    <option value="New Zealand">New Zealand</option>

                                                    <option value="Nicaragua">Nicaragua</option>

                                                    <option value="Niger">Niger</option>

                                                    <option value="Nigeria">Nigeria</option>

                                                    <option value="Niue">Niue</option>

                                                    <option value="Norfolk Island">Norfolk Island</option>

                                                    <option value="Norway">Norway</option>

                                                    <option value="Oman">Oman</option>

                                                    <option value="Pakistan">Pakistan</option>

                                                    <option value="Palau Island">Palau Island</option>

                                                    <option value="Palestine">Palestine</option>

                                                    <option value="Panama">Panama</option>

                                                    <option value="Papua New Guinea">Papua New Guinea</option>

                                                    <option value="Paraguay">Paraguay</option>

                                                    <option value="Peru">Peru</option>

                                                    <option value="Phillipines">Philippines</option>

                                                    <option value="Pitcairn Island">Pitcairn Island</option>

                                                    <option value="Poland">Poland</option>

                                                    <option value="Portugal">Portugal</option>

                                                    <option value="Puerto Rico">Puerto Rico</option>

                                                    <option value="Qatar">Qatar</option>

                                                    <option value="Republic of Montenegro">Republic of Montenegro</option>

                                                    <option value="Republic of Serbia">Republic of Serbia</option>

                                                    <option value="Reunion">Reunion</option>

                                                    <option value="Romania">Romania</option>

                                                    <option value="Russia">Russia</option>

                                                    <option value="Rwanda">Rwanda</option>

                                                    <option value="St Barthelemy">St Barthelemy</option>

                                                    <option value="St Eustatius">St Eustatius</option>

                                                    <option value="St Helena">St Helena</option>

                                                    <option value="St Kitts-Nevis">St Kitts-Nevis</option>

                                                    <option value="St Lucia">St Lucia</option>

                                                    <option value="St Maarten">St Maarten</option>

                                                    <option value="St Pierre &amp; Miquelon">St Pierre &amp; Miquelon</option>

                                                    <option value="St Vincent &amp; Grenadines">St Vincent &amp; Grenadines</option>

                                                    <option value="Saipan">Saipan</option>

                                                    <option value="Samoa">Samoa</option>

                                                    <option value="Samoa American">Samoa American</option>

                                                    <option value="San Marino">San Marino</option>

                                                    <option value="Sao Tome & Principe">Sao Tome &amp; Principe</option>

                                                    <option value="Saudi Arabia">Saudi Arabia</option>

                                                    <option value="Senegal">Senegal</option>

                                                    <option value="Seychelles">Seychelles</option>

                                                    <option value="Sierra Leone">Sierra Leone</option>

                                                    <option value="Singapore">Singapore</option>

                                                    <option value="Slovakia">Slovakia</option>

                                                    <option value="Slovenia">Slovenia</option>

                                                    <option value="Solomon Islands">Solomon Islands</option>

                                                    <option value="Somalia">Somalia</option>

                                                    <option value="South Africa">South Africa</option>

                                                    <option value="Spain">Spain</option>

                                                    <option value="Sri Lanka">Sri Lanka</option>

                                                    <option value="Sudan">Sudan</option>

                                                    <option value="Suriname">Suriname</option>

                                                    <option value="Swaziland">Swaziland</option>

                                                    <option value="Sweden">Sweden</option>

                                                    <option value="Switzerland">Switzerland</option>

                                                    <option value="Syria">Syria</option>

                                                    <option value="Tahiti">Tahiti</option>

                                                    <option value="Taiwan">Taiwan</option>

                                                    <option value="Tajikistan">Tajikistan</option>

                                                    <option value="Tanzania">Tanzania</option>

                                                    <option value="Thailand">Thailand</option>

                                                    <option value="Togo">Togo</option>

                                                    <option value="Tokelau">Tokelau</option>

                                                    <option value="Tonga">Tonga</option>

                                                    <option value="Trinidad &amp; Tobago">Trinidad &amp; Tobago</option>

                                                    <option value="Tunisia">Tunisia</option>

                                                    <option value="Turkey">Turkey</option>

                                                    <option value="Turkmenistan">Turkmenistan</option>

                                                    <option value="Turks &amp; Caicos Is">Turks &amp; Caicos Is</option>

                                                    <option value="Tuvalu">Tuvalu</option>

                                                    <option value="Uganda">Uganda</option>

                                                    <option value="Ukraine">Ukraine</option>

                                                    <option value="United Arab Erimates">United Arab Emirates</option>

                                                    <option value="United Kingdom">United Kingdom</option>

                                                    <option value="United States of America">United States of America</option>

                                                    <option value="Uraguay">Uruguay</option>

                                                    <option value="Uzbekistan">Uzbekistan</option>

                                                    <option value="Vanuatu">Vanuatu</option>

                                                    <option value="Vatican City State">Vatican City State</option>

                                                    <option value="Venezuela">Venezuela</option>

                                                    <option value="Vietnam">Vietnam</option>

                                                    <option value="Virgin Islands (Brit)">Virgin Islands (Brit)</option>

                                                    <option value="Virgin Islands (USA)">Virgin Islands (USA)</option>

                                                    <option value="Wake Island">Wake Island</option>

                                                    <option value="Wallis &amp; Futana Is">Wallis &amp; Futana Is</option>

                                                    <option value="Yemen">Yemen</option>

                                                    <option value="Zaire">Zaire</option>

                                                    <option value="Zambia">Zambia</option>

                                                    <option value="Zimbabwe">Zimbabwe</option>

                                                </select>

                                            </td>

                                        </tr>

                                        <tr>

                                                  <td><h3>Next of Kin's Comments</h3></td>

                                        </tr>

                                        <tr>

                                                  <td class="column1a" colspan="2">

                                                      <textarea name="comments[]" id="k_comments_<?php print $i; ?>" onkeyup="adjustHeight(this)" style="width:100%" ></textarea>

                                            </td>

                                        </tr>

                                        <tr>

                                                  <td colspan="2"><hr /></td>

                                        </tr>

                                        <?php } ?>

                                    </table>

                                    <input class="floatRight" name="submit" type="submit" value="NEXT" />

                                </form>

                                <div class="clearRight"></div>

                            </div>

                        </div>

    This page is necessary within the full html/php page. Dreamweaver says there is an error on line 236 which is

    <select name="country[]" id="Country_<?php print $i; ?>">

    but I know full and well that there is no error in this line of code or the code. There seems to be a bug with the syntax checker in Dreamweaver CS5. I don't know if this error would show most recent Dreamweaver versions, like everything I have is CS5. Thanks for the help of anybodies that can verify this bug or spot an error in my code.

    If I change the "wrong" line of the code of

    <select name="country[]" id="Country_<?php print $i;} ?>">

    Then the syntax error will disappear in Dreamweaver, but PHP error: "{Parse error: syntax error, unexpected '}' in /path_to_my_file/my_file.php on line 499" will then appear

    Hi Anthony,.

    We have been able to reproduce the problem at our end using the code you provided and we are investigating the same.

    We recorded an internal bug # 3612970 to follow up on this matter. We will try to prioritize and difficulty to future updates of Dreamweaver CC.

    Please let us know if you need assistance at any time. We will be happy to help you.

    Thank you

    Arindam

  • Problems with Bind Variables

    SELECT co.ref_num, co.forename, co.surname, co.dob, a.address, a.postcode,
           co.ni_num
      FROM address a, contact co
     WHERE co.ref_num = a.ref_num
       AND (:1 IS NULL OR co.forename = :2)
       AND (:3 IS NULL OR co.surname = :4)
       AND (:5 IS NULL OR a.postcode = :6)
       AND (:7 IS NULL OR a.address = :8)
       AND (:9 IS NULL OR co.dob = :10)
       AND (:11 IS NULL OR co.ni_num = :12)
    With a jdbc connection, we use a web front end for a new management system. The SQL above runs since a search screen. We meet a few serious problems with bind variable and execution plans. When the above query is sent by the database 'AND' clauses could evaluate as follows:
    AND ('Tim' IS NULL OR co.forename = 'Tim')
       AND ('Clarke' IS NULL OR co.surname = 'Clarke')
       AND ('' IS NULL OR a.postcode = '')
       AND ('' IS NULL OR a.address = '')
       AND ('25051981' IS NULL OR co.dob = '25051981')
       AND ('' IS NULL OR co.ni_num = '')
    We cannot dynamically assign 'AND' conditions so they are sent through to the database. This translates FTS 99% of the time as the execution plan never prescribed any of the available indices.

    Someone has suggestions on how to better 'control' bind variables?

    Hello

    Don't you think that 'OR' Conditions are necessary to check for Null, where the binding variable is NULL or not.

    I think that rather than running the query from the front to FB, try to convey the values of some MS and run this query in the procedure, the extraction from the point of view Design coding application. Never fire the query of the frontal part.

    To come to the problem.

    SELECT co.ref_num, co.forename, co.surname, co.dob, a.address, a.postcode,
    Co.ni_num
    ADDRESS, contact co
    WHERE co.ref_num = a.ref_num
    AND (: 1 co.forename IS NULL or =: 2)
    AND (: 3 co.surname IS NULL or =: 4)
    AND (: 5 a.postcode IS NULL or =: 6)
    AND (: 7 a.address IS NULL or =: 8)
    AND (: 9 co.dob IS NULL or =: 10)
    AND (: 11 co.ni_num IS NULL or =: 12)

    Use the procedure.

    Fact exits of the indexes on the tables and stats are updated...?
    Try to predict explain it. ??

    -Pavan Kumar N

  • I use a PC and I used LR3. I'm a newcomer to LR, so patient with me! My problem is related to the import function. I have a photo library on an external hard drive. I slowly imported previews of the photos selected from the library in

    I use a PC and I used LR3. I'm a newcomer to LR, so patient with me! My problem is related to the import function.

    I have a photo library on an external hard drive. I've slowly been import previews of the photos selected from the library in my catalog, adding them during the import process - well. But now, I hit a problem. Another folder in my library contains several subfolders, each containing a number of photos (a mixture of RAW steals (naves) and jpg). I was importing found in my catalog each Subfile in turn, using the Add function, usually of the jpgs only from each Subfile. It works fine, until I reached a particular Subfile. For some reason when I try to import from it and select the secondary file as a Source, only the RAW (NEF) images appear in the preview pane (sorry, forgot the correct term for it!). I know that jpg files are in this auxiliary file on the external hard drive, because when I view its content in Windows, they are all there. But try as I can (choose the file under source, select the folder parent as a source, try to copy or move them, instead of adding them), nothing seems to work. Since they do not appear in the preview pane, I can't import them. It does appear that this a Subfile where the problem exists, but I don't see anything that is different from the others (names of files under all use the same structure - yyyy-mm-dd_custom name, and pictures in all subfolders are adopting the same denomination structure too - yyyy-mm-dd_sequential number_custom name.) NAVE/JPG. So what I am doing wrong? Any ideas please.

    It is possible that the images in this particular subfolder were taken in your camera in RAW + JPEG.  If so, you will need to go to preferences under the general tab and make sure the box "processing JPEG files files next to raw as separate photos" is checked.

    However, assuming that this is the case, there is really no reason to import the JPEG file if you already have the RAW file.

  • problem with bind variables in the SQL query view object

    Hi all

    I use JDev 11.1.2.4.0.

    I have a problem with bind variables in the SQL query view object.

    This is my original SQL

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE t.nctuser_id = '20022' 
          AND to_char(t.insertdate,'YYYYMMDD') in ('20130930','20130929')
    group by t.legertype_id
    

    In my view .xml object query tab, I am writing this

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE   t.nctuser_id = '20022'
        AND to_char(t.insertdate,'YYYYMMDD') in :dddd
    group by t.legertype_id
    

    Davis here is a variable of Type liaison: String, updatable and necessary.

    I try to deal with Davis as ('20130930 ', ' 20130929') hoping the view object, run as my original SQL.

    But failed. The view object retrieves 0 line after that I run.

    Why?

    Thank you! ('2original SQL0130930', '20130929') ('20130930 ', ' 20130929')

    A variable binding cannot be used as this is why you must use years table. Check decompilation binary ADF: using oracle.jbo.domain.Array with ViewCriteria to see a solution.

    Timo

  • Problems with the Row_Number function

    I have problems with the Row_Number function. I use to assign line numbers to records where a student has a note of passage on a module and the exclusion of the modules failed (I want to show her a 0 as the line number for the modules failed). The problem is that when I try to use a condition, the report still assigns a line number to a defective module if it does not display it (it shows a 0 I wanted to show him). The results are displayed as follows:

    Line number Module Grade
    1ModuleAPass
    2ModuleBPass
    0ModuleCIn case of failure
    4 (instead of 3)ModuleDPass

    How can I make him jump to assign a line number to all the modules failed? Please help.

    Thank you.

    Thank you very much, Melanie. I made changes to query as per your suggestion, which is a union of the modules failed and passed (using row_number on success modules). Thanks for the solution.

  • Problem of Variable/stored procedure

    I hope it's the last issue to work through... but we need to access pictures stored on another server. We have a stored procedure called "get_doc" that accesses the filename of the image, and we have successfully tested it with a hardcoded value. A button called a process that is running the following PL/SQL:

    () get_doc
    p = > 77456);

    However, when I use the same method with a variable on the page (which has the same numerical value of 77456), the procedure shows the value of p is Null.

    () get_doc
    p = >: P7_STARTERNUM);

    Any suggestions or advice?
    (With the help of ApEx 4.0 in IE8)
  • Using ChnCalculate with a variable

    The channel of LIN/LIN_Error has 3000 values inside. I want to add a correction value to each of the 3000 values inside.

    If I use a constant, it works well. For example:

    Call ChnCalculate ("Ch(""LIN/LIN_Error"") = (2 + Ch (" "LIN/LIN_Error" "" "))") adds 2 to each value.

    However if I try with a variable it does not work.

    Dim Corr

    GlobalDim "Corr".

    Corr = 2
    Call ChnCalculate ("Ch(""LIN/LIN_Error"") = (Corr + Ch (" "LIN/LIN_Error" "" "))")

    Hi Frank,.

    The problem is your first line.  By running 'Dim Corr' in the VBScript code, you force this variable name to refer to the variable in VBScript and not the variable global tiara - light color in the SCRIPT Panel does not reflect what is confusing.  If you remove the statement Dim Corr, and then the VBScript code will correctly reference the global variable.  Another way to put it is that your VBScript never affects the global variable to Corr 2.  The command correctly done ChnCalculate() refers to the global variable of Corr, but it is always set to 0.

    However, for this task, I'd recommend the ChnLinScale() function, which is simpler, will run faster, accepts regular VBScript variables and ignore so all this imbroglio.

    Dim Corr
    Corr = 20
    Call ChnLinScale ("LIN/LIN_Error", "LIN/LIN_Error", 1, Corr)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Need help with filterFunction with special character function

    Hello

    I am a simple/search filter process to a collection of dataGrid on the text with the filterFunction function entries. Is what I am facing problem in one of my column field (on which I'm filtering) point '. ' as a suffix and it is not included in the research process.

    I have a few values as - i_24., i_245., i_256.

    Now with the function current filterfunction when a user entered i_24. It shows another recording as well - i_245, where the expected input should be i_24. (since i_245 is not i_24.5)

    But it seems that the search function does not take point '. ' as a character in the research process, or at least when it is left as a suffix.

    I toilet maybe some RegExp could solve the problem, but I'm not good and more.

    Help, please.

    Thank you.

    Kind regards

    Shad

    aSuitableBoy,

    Use the 'indexOf' of the string method.  (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/String.html#indexOf ()).
    The syntax is the following: "String (.)." indexOf ()

    Here's a little snippet of code that I have written, that works:

    http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete ="cc (); » >

    Import mx.controls.Alert;

    Import mx.collections.ArrayCollection;

    [Bindable] private var ac:ArrayCollection = new ArrayCollection();

    private void cc (): void

    {

    var o: Object = new Object();

    o.Field1 = "value 1: ';

    o.Field2 = 'i_24.';

    o.field3 = 'another value '. » ;

    ac.addItem (o);

    o = new Object();

    o.Field1 = ' value 2 ';

    o.Field2 = 'i_245.';

    o.field3 = 'another value '. » ;

    ac.addItem (o);

    o = new Object();

    o.Field1 = "value 3:";

    o.Field2 = 'i_256.';

    o.field3 = 'another value '. » ;

    ac.addItem (o);

    }

    private void filterFunc(o:Object):Boolean

    {

    return String (o.field2) .indexOf ("i_24."). = -1 ;

    }

    ]]>

  • Can not get the use of variable function!

    Hi, I created an actionscript function that stops at an animation to a specific image that works very well. Then, I loaded in a php file with a variable that will contain the number for the frame I want to stop on the animation. It loaded fine and I loaded it into a function. what I can't do is enter the variable in the function that tells the animation to stop playing.

    Here is my code:

    load variables
    varReceiver = new LoadVars(); create an object to store the variables
    varReceiver.load ("http://playground.nsdesign6.net/percentage/external.php" "");
    load variables

    function1
    varReceiver.onLoad = function() {}
    value is the var that is created.
    var paul = this.percentage;
    }
    function1

    function2
    this.onEnterFrame = function() {}
    {if (this._currentframe == (Paul))}
    This.Stop ();
    this.onEnterFrame = undefined;
    }
    }
    Play();
    function2

    One problem lies in that you declare the variable in a function.  This limits the scope of this variable to the function. So that your enterFrame function can not see it.  Another thing you should consider is not the enterFrame function until the variable is read.  So while I would have suggested that you move the declaration of the variables of the function, maybe move the enterFrame function will have a similar effect...

    varReceiver.onLoad = function() {}
    value is the var that is created.
    var paul = this.percentage;

    this.onEnterFrame = function() {}
    {if (this._currentframe == (Paul))}
    This.Stop ();
    this.onEnterFrame = undefined;
    }
    }

    }
       
    Play();

    If this does not work, then just try to move the variable outside the function declaration and only assign its value it contains.  In this way, paul is visible in the second function...

    var paul;

    function1
    varReceiver.onLoad = function() {}
    value is the var that is created.
    Paul = this.percentage;
    }
    function1

  • Help with JDBC stored functions

    Hello.. Im having problems with my stored functions (java oracle), where I create the functions but then im I call them, it does not return any value (nothing happens after that I called my function). Can someone help me?

    Here's how to create the registered function:

    /************************************************** ****************/
    create or replace FUNCTION insert_client_func (a_client_name IN CLIENTS.client_name%TYPE)

    RETURN VARCHAR2

    IS


    BEGIN

    INSERT INTO CUSTOMERS (client_name)

    VALUES (a_client_name);


    Return a_client_name;

    END;
    /************************************************** *****************/

    Heres how I call it:

    /************************************************** *****************/
    name = "'" + name + "'";

    Command string = "{call insert_client_func("+name+")}";

    try {}
    String url="jdbcracle:thin:@localhost:1521e; »
    this.dbConnection = DriverManager.getConnection (url, "bd2009", "bd2009");
    System.out.println (Command);
    This.callstmt = This.DbConnection.prepareCall (command d);
    this.callstmt.registerOutParameter (1, Types.VARCHAR);
    this.callstmt.executeUpdate ();
    String simpleArray = this.callstmt.getString (1);
    System.out.println (simpleArray);

    this.dbConnection.commit ();
    This.callstmt.Close ();
    this.dbConnection.close ();
    }
    /************************************************** *****************/

    The syntax of your call is incorrect. For functions, it should be

    "{ ? = call insert_client_func (?)} »

    You can also use the syntax of PL/SQL

    ' BEGIN?: = insert_client_func (a_client_name =>?); END; »

    Then configure your settings

    this.callstmt.registerOutParameter (1, Types.VARCHAR);
    this.callstmt.setObject(2, );

    What is the data type of IN_CLIENTS.client_name?

    Call the function and retrieve the return value

    This.callstmt.Execute ();
    String value = this.callstmt.getString (1);

  • Satellite A100-220: is it possible to extend with the WLan functionality?

    As in the title: is it possible to extend the Satellite A100-220 - without builtin WLAN - with the WLAN functionality?

    Hello

    It is not a problem to use the WLAN option on the unit without internal WLAN card. You can also use the little USB WLAN stick. It is very small and easy to configure. Before you buy something to pick up the info from your local dealer.

Maybe you are looking for