LVOOP Parent private data returned when child instance created from constant

I have created one Parent class, and one Child class.  For each of these classes, I have created a member VI that is a constructor, whose purpose will be to initialize some constants for each class, and return the class instance.  I also have a member accessor VI for each class that returns the private data of the class (in this case a single string for each class).
The Parent class's private data "String" is set to"Parent text" as the default value.
The Child class's private data "Child String" is set to"Child Text" as the default value.
The Parent class constructor works just fine.  For testing purposes, I return the text from directly unbundling in the constructor VI, and as returned from the accessor VI. The Parent constructor starts from a class constant.
However, in the case of the Child class constructor, if I start from a class constant, directly unbundling the private data (using an Unbundle By Name function, and choosing "Child String" as the element), I get the Parent's private data!
If I use the Child class's member VI to retrieve the text, I get the Child's private data.
If I change the constructor to start from a class Control instead of a class Constant, I get the Child's private data.
This only occurs  before the Child class has existed as a
Control/Indicator. i.e. If I unbundle the private data after the class 
is returned by any member VI, I get the correct Child private data.  So obviously something changes once the class "data" has been a control at some point.
I am using Labview 8.6.1, Windows XP
I have attached a small project that illustrates the problem I am encountering, without actually doing any initialization, just reading.
Is this the intended behaviour?  Why does it matter if I start with a class constant instead of a class control?  When you drag from the Project window to the Block diagram, you always get a constant.
Solved!
Go to Solution.
Attachments:
ParentChildClass.zip ‏54 KB

Although I was able to replicate your issue in LabVIEW 8.6.1, it appeared to run correctly in 2009.  I could not find a CAR ID but at this point can only assume that the behavior was not intended but is fixed in 2009.
Let me know if you need me to find any further details.
Alex Person
NI-RIO Product Support Engineer
National Instruments

Similar Messages

  • Acrobat 8 Standard crashes when opening PDFs created from  Microsoft Project 2007

    Issue: Acrobat 8 Standard crashes when opening PDFs created from Microsoft Project 2007.
    OS: Win XP Pro SP3
    Error Message(s): None
    Details: This issue happens with multiple Microsoft Project files (including new files), multiple PDF creators (included Acrobat 8 Standard) and on multiple computers. We also tried opening the PDFs in Adobe Reader 8 instead of Acrobat Standard 8. There is no record in the event log on the computers of the application crashes.

    I may have a resolution now...
    I clicked Tools -> Options -> View and turned off Bars and shapes in Gantt views in 3-D" on the advice of someone on a Microsoft Forum. I made three PDFs from three Microsoft Project files (that were having trouble previously) and was not able to get these PDFs to crash when zooming or changing pages. So far so good!
    Regards,
    Josh Gold
    SERA Architects

  • Parent class private data accessable in Child class?

    Hi!
    I thought that this would be obvious, but my search foo fails me.  Hopefully someone would be kind enough to answer my newbie LVOOP question.
    I have a a parrent class.  This parrent class contains a cluster of class private data.  I setup all the accessor methods to this data.  I create a child class that has functions that need to access data stored in its parrent class.  Its inheritence is set, but when I try to unbundle the class data all I can seem to get to is what is setup in the child class' data cluster.
    I've watched a video and it looked like the data cluster magically appeared and was accessable through the children methods.  What am I missing?
    Thanks for input!
    -nic
    Solved!
    Go to Solution.

    Nickerbocker wrote:
    Well, that makes sense.
    One other quick question.  Is the procedure, New->"VI for Override..." from the context menu of my child class the only way to create a method that overrides the parents method?  Where is the property that defines this newly created VI as overriding my parent's VI?  Can I simply create a VI that is named the same and it have the same effect?
    That is the only method I use but I believe if you get all of your icon patterns and terminal marking as dynamic and all of the other rules, you should be able to do the same thing by hand (I base this guess on the fact I messed with those things and broke my ever-rides).
    The only thing I think has to be done from the project (scripting aside) is to set-up the inheritance.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • No data returned when optional hierarchy prompt is filled in.

    Hi,
    I have created a query in Query Designer with an optional hierarchy node variable on Profit Center in the characteristic restrictions.
    When I create my report in Crystal, the prompt on Profit Center arise with the option Set To Null marked on. When I keep this option marked, I get the correct data.
    But when I enter a Profit Center node into the prompt, I receive no data, even when the entered data exists in the database.
    What do I have to enter in a hierarchy prompt? I've tried with the key, the name, the node ID, the parent node ID...
    Are there any special options or things I have to focus on in query designer or CR to get this thing working?
    Lieven

    Hi,
    what i was trying to say -run the query in sql developer or whatever ide u r using.
    If u get data for both null and value entered then check in database expert(in reports) if there is any link..
    I hope u got the right meaning previously.
    Regards,
    Misra P.

  • Incorrect data returned when using a date prompt

    We are using BO XI R3.1 with fix pack 1.3 on windows with a CMS and report database on Oracle 11i. There is one report in which a date range is set by prompting for the Start and End date, depending on the dates entered it sometimes erroneously displays the message `No data to fetch`.  It can be confirmed that there is actual data rows, by either running the SQL script in an application such as Toad or by hard-coding the start and end dates into the condition, indicating that it is the `Prompt` which is causing the problem.
    For example if the start and end dates are 28/06/2010 - 02/07/2010 there will be no data returned, but if the end date is extended to 30/07/2010 then data will be returned which includes transactions from 28/06/2010 - 02/07/2010.  Whether the date range is set using the SQL `between`  operator  or  using the start date greater than or equal and end date less than or equal results in the same `no data to fetch` message displayed.
    Is this a known issue or have other users come across this behaviour in their desktopIntelligence reports ?. It may be that it is fixed in subsequent service packs but for the time being our environment cannot upgrade beyond the existing fix pack. This problem can also be replicated on new reports and even on other date fields in the database, and if the prompt is incorporated into the Universe the problem still remains.
    Meanwhile any thoughts or ideas on the problem are appreciated.
    Edited by: Peter Gibbs on Jul 26, 2010 1:14 PM

    Hi Peter,
    I've noticed similar behaviour in the past, and it had to do with a difference in language setting between client and server side.
    So let's say dutch client, american oracle.
    So oracle expects MM/DD/YYYY whereas the users think they must input DD/MM/YYYY.
    Now happens something that I consider BO being to clever for its own good.
    If a user enter 28/06/2010 it knows that can't have been MM/DD/YYYY since it is invalid that way,
    so it swaps it! and gives 06/28/2010 to the database.
    A date like 02/07/2010 doesn't get swapped because its valid,
    so it gives 02/07/2010 to the database.
    So ultimately the database tries to retrieve between Jun 28th and Feb 7th, which gives no data to fetch...
    Thats why in situations with different date formats I never use a data field to prompt,
    but request the data in a certain format as string and convert it myself in the universe to a dateformat for the database to process. I just state the expected input format to the user so there are no surprises anymore.
    Something like "Give date from (ddmmyyyy)"...
    Hope this helps,
    Marianne

  • Stale Data error when invoking seeded OAF from a custom OAF page

    Hi All,
    We have a requirement in OAF where we have to open a Seeded OAF Page (Install Base) from our Custom Page. We are using the javascript function “openWindow()” to open the page in a new window. When we close the seeded page by clicking seeded page window using the Window-close button and then perform any event on the custom page, we get the Stale Data error as given below.
    Error: Stale Data
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example).
    Cause:
    The number of displayed records, 2, exceeds the actual number of records, 1, in view object OwqAM.IKNCICOWQDetailVO1. Some of the displayed records may have been deleted.
    Here is the part of code we have tried.
    String destination = "/OA_HTML/RF.jsp?function_id="+Func_Id+"&"+"resp_id="+Resp_id+"&"+"resp_appl_id="+Application_id+"&security_group_id=0&lang_code=US";
    String testDest = "javascript:openWindow(top,'"+destination+"',null,{width:750, height:550},false,'document',null);void(0);";
    OABodyBean bodyBean = (OABodyBean)pageContext.getRootWebBean();
    bodyBean.setOnLoad(testDest);
    Also this issue is encountered only when we open an OAF page in a new window. We also have a functionality where a JSP page is opened on similar lines, but above said navigations do not result in the same error.
    If anyone has come across such a issue and have a resolution, please let me know. Any pointers would be of great help.
    Thanks,
    Mrugesh

    Hi,
    We had tried passing RetainAM = Y and then bouncing apache. Still we were getting the same error.
    We are not facing the STALE DATA issue when we invoke JSP page and oracle forms. It is only when we launch a seeded OAF page from our custom OAF page that we are getting this error.
    Regards,
    Mrugesh

  • Loosing raw data size when moving album pictures from aperture to iphoto 08

    I have all of my Raw files and pictures stored on Aperture using versions in album format. Would like to use iphoto 08 only for tranfering files to web gallery. Yet every time I try to move files (ie drag and drop) from my albums (my versions) the file size diminishes therefore defeating the purpose since i'd like to have high quality images on my web gallery so others can download. I've tried clicking preferences to "copy files" into iphoto08 as well as leaving it unchecked but still the image file size goes from 2mb to 330 kb. ANY SUGGESTIONS??? I guess I could export the raw files from the masters yet it seems this would be awkward when working with pictures from different sources. HELP ??

    Actually this is an Aperture issue since this problem only occurs when I export and then import files from aperture into iphoto 08. When I import files off a disk or external compact flash disk directly into iphoto 08 and then upload to the web gallery they retain the same file size yet the files that were brought over from aperture somehow loose there size once they go to the gallery. Interstingly enough the file size of versions brought over from aperture appear to remain in tact in iphoto but drop off once on the web???? Does this have anything to do with Versions as reference files...but if so how does one retain the chaanges made in aperture to a master file and export it to iphoto 08 and then on to the web and still retain some semblance of file size??? Note I already did enable downloading prior to uploading to the gallery.. HELP!

  • Entity Instances created from backend inaccessible during interview session

    Hi,
    Is it possible to access entity instances which are created from back end, during an interview session?
    I am creating the entity instances and setting some of its attributes from the back end. But when I try to access these instances on screen to set the rest of its attributes, I get the following error -
    com.oracle.determinations.interview.engine.exceptions.InterviewEngineException: Entity Instance does not exist in model

    Yes it is possible to access the entity instances held in the session. However, in an interview session you should never change the state of the session directly, but rather use the setData methods provided by the Interview API or write a data adaptor plugin. The error message you are receiving is cause by the reason it states, namely the entity instance you're asking for does not exist in the session. If you are adding entity instances by modifying the session directly rather than using the Interview API, it's likely that those entities their associated attributes are being lost and hence the error.
    If you can provide more details on what it is that you are trying to do I can help point you in the right direction.
    Thanks,
    Kristy

  • Acrobat 9.5, file corruption when combining .pdfs created from Word or Excel (from Office 2010) into a larger .pdf document

    In Acrobat 9, when I combine .pdfs created from Word or Excel (from Office 2010) into a larger .pdf document, there is data corruption. Some of the text appears as blank boxes when the pages are inserted into the larger .pdf, the main document. I have so far solved this by "printing" the files to .pdf, and then inserting them into the larger .pdf main document, but this creates a fatter .pdf file that is much larger than would otherwise be the case. Are there any other solutions within Acrobat 9, please? If this bug has been solved in Acrobat X or XI, please advise. Thanks.

    As far as the images are concerned, that may be a result of your choice of job settings. You may want to use the Press or Print option if the image quality is important. I assume you are talking about bit images in this case.
    As to the hangup, have you checked to see if AcroTray is active on your system? It may not be running as needed. In the meantime, try checking print to file and then opening that file in Distiller to complete the conversion to PDF.
    Before you ever try a reinstall, you need to do a repair first to see if that resolves the problem. There are a lot of unknowns about your exact process for the printing and your job settings that may be part of the problem. The rest of your system setup is useful in some cases, but did not help me see your problem.

  • Need to read parent tag data even if child fragment doesnot have data

    Hi, I am using Binary method of XML Storage,
    Here is my Oracle installation details
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE 11.2.0.3.0 Production"
    XML Structure Details ---> The provided sample xml has repetitive Party tag under which a PolicyNumber tag might be present, under the Party tag a AddressList may or not be present.
    I have 3 such Party tags, the first one has no PolicyNumber tag altough the AddressList tag and has multiple Adress under the same, the second Party tag has the PolicyNumber however it doesnot have the AdressList data in it, 3rd party tag is irrelevant for this issue.
    What i want to acheive ---> Even though there are no Address present for the PolicyNumber tag i want PolicyNumber to appear in my result set, since the PolicyNumber's Party tag doesnot have a Address tag i guess the result set is ignoring the PolicyNumber in the final result set.
    In a nut shell i need all these data i cannot miss the PolicyNumber neither the Address
    Please go through the XML and the subsequent query for further assitance
    Inserting a sample XML
    INSERT INTO XML_TEST
    VALUES
    (XMLTYPE('<?xml version="1.0"; ?>
    <workfile>
    <claimnumber>abcdefgh</claimnumber>
    <Party>
    <AutoInsurancePolicy>
    <AddressList>
    <Address>
    <Address1>data1 goes here</Address1>
    <Address2>data1 goes here</Address2>
    </Address>
    <Address>
    <Address1>data2 goes here</Address1>
    <Address2>data2 goes here</Address2>
    </Address>
    </AddressList>
    </AutoInsurancePolicy>
    </Party>
    <Party>
    <AutoInsurancePolicy>
    <PolicyNumber>123456</PolicyNumber>
    </AutoInsurancePolicy>
    </Party>
    <Party>
    <AutoInsurancePolicy>
    <ContactList>
    <ContactNumber>
    <Phone>917656723</Phone>
    </ContactNumber>
    </ContactList>
    </AutoInsurancePolicy>
    </Party>
    </workfile>
    Query that i am using to extract CLAIM, PolicyNumber and Corresponding Addresses
    select
    m.CLAIM,
    n.PolicyNumber,
    l.ADDRESS_1,
    l.ADDRESS_2
    from XML_TEST,
    xmltable(
    '$WK/workfile' passing XMLDATA as "WK"
    columns
    CLAIM VARCHAR2 (4000) PATH 'claimnumber',
    Party_fragment XMLTYPE PATH 'Party'
    ) m,
    XMLTABLE(
    '$PY/Party' passing m.Party_fragment as "PY"
    columns
    PolicyNumber VARCHAR2 (4000) PATH 'AutoInsurancePolicy/PolicyNumber',
    Address_Fragment XMLTYPE PATH 'AutoInsurancePolicy/AddressList/Address'
    ) n,
    XMLTABLE(
    '$AD/Address' passing n.Address_Fragment as "AD"
    columns
    ADDRESS_1 VARCHAR2 (4000) PATH 'Address1',
    ADDRESS_2 VARCHAR2 (4000) PATH 'Address2'
    ) l;
    But this query returns no PolicyNumber, since the address under the Party node where the PolicyNumber is present does not have a corresponding Address value
    Heres the result set returned:-
    CLAIM POLICY_NUMBER Address1 Address2
    abcdefgh <NULL> data1 goes here data1 goes here
    abcdefgh <NULL> data2 goes here data2 goes here
    Is there a way to specify to the above query to fetch all the data even if its corresponding Address fragment does not have data against the tag.
    Result set that i want to acheive:-
    CLAIM POLICY_NUMBER Address1 Address2
    abcdefgh 123456 <NULL> <NULL>
    abcdefgh <NULL> data1 goes here data1 goes here
    abcdefgh <NULL> data2 goes here data2 goes here
    Regards,
    Arghyadip
    Edited by: beta32c on May 9, 2013 2:06 AM

    beta32c wrote:
    Howver i think i am unable to express my problems correctly , let me try again i need both the policynumber and the address details in my result set No problem, you expressed your problem correctly, and the query I've suggested should have worked.
    However, there seems to have a bug when the outer join is only used at the deepest level.
    Try with outer joins at every level :
    SQL> select m.CLAIM,
      2         n.PolicyNumber,
      3         l.ADDRESS_1,
      4         l.ADDRESS_2
      5  from XML_TEST,
      6       xmltable(
      7         '$WK/workfile' passing XMLDATA as "WK"
      8         columns
      9           CLAIM VARCHAR2 (4000) PATH   'claimnumber',
    10           Party_fragment XMLTYPE PATH 'Party'
    11       ) (+) m,
    12       XMLTABLE(
    13         '$PY/Party' passing m.Party_fragment as "PY"
    14         columns
    15           PolicyNumber VARCHAR2 (4000) PATH  'AutoInsurancePolicy/PolicyNumber',
    16           Address_Fragment XMLTYPE PATH 'AutoInsurancePolicy/AddressList/Address'
    17       ) (+) n,
    18       XMLTABLE(
    19         '$AD/Address' passing n.Address_Fragment as "AD"
    20         columns
    21           ADDRESS_1 VARCHAR2 (4000) PATH 'Address1',
    22           ADDRESS_2 VARCHAR2 (4000) PATH 'Address2'
    23       ) (+) l
    24  ;
    CLAIM        POLICYNUMBER    ADDRESS_1          ADDRESS_2
    abcdefgh                     data1 goes here    data1 goes here
    abcdefgh                     data2 goes here    data2 goes here
    abcdefgh     123456                            
    abcdefgh                                       

  • Loosing data returned when connection temparily drops

    Users, usually those on wireless network connections,
    complain data is not returned to my Flash app. They explain they
    can access other sites (html) without a problem. I believe they are
    experiencing wireless network interference intermittently. The
    network connection seems to be down for a second or two during the
    interference while the message is on its way back to the client via
    Flash Remoting. When this happens, the data is lost.
    Is there any setting in Flash Remoting or Flash that will
    cause it to continue to try to get the data to the client during
    these brief moments when the connection is lost?

    Crystal,
    Thanks for answering on my question, not many users semms to be using the LabVIEW-Database Connectivity-MySQL configuration !?, as for Your question, the following error message is generated by the "DB Tools Insert Data" vi:
    "Cmd Execute.vi->DB Tools Insert Data.vi->Information Administrator.viException occured in Microsoft OLE DB Provider for ODBC Drivers, [MySQL][ODBC 3.51 Driver][mysqld-4.1.0-alpha-max]Lost connection to MySQL server during query. in Rec Create - Command.vi->Cmd Execute.vi->DB Tools Insert Data.vi->Information Administrator.vi"
    In most cases i don´t use this vi, normally I use the "Connection Execute" vi to generate SQL commands, in any case the problems remains regardless of how the SQL commans is generated.
    Any
    ideas of why the exception occurs and connection is lost??

  • Invalid data returned when iterating a java.util.Properties

    Hi all,
    I'm having trouble iterating thru the values in a java.util.Properties object.
    This problem only occurs when passing in a java.util.Properties object into the constructor of a java.util.Properties.
    Here's some example code. (A picture is worth....)
    <pre>
    import java.util.Properties;
    import java.util.Iterator;
    public class PropertyTest {
    public static void main(String[] args) {
    Properties validProp = new Properties();
    //add some data
    validProp.put("key1", "key1Value");
    validProp.put("key2", "key2Value");
    validProp.put("key3", "key3Value");
    System.out.println("This will iterate...");
    dumpPropertyFile(validProp); //This will iterate correctly
    Properties inValidProp = new Properties(validProp);
    System.out.println("This doesn't iterate correctly");
    dumpPropertyFile(inValidProp); //This will not iterate
    public static void dumpPropertyFile(Properties prop) {
    Iterator iter = prop.keySet().iterator();
    while (iter.hasNext()) {
    String key = (String)iter.next();
    System.out.println(key + "=" + prop.getProperty(key));
    </pre>
    I have searched the bug database, but didn't find any open bugs related to this issue.
    Could someone let me know if this is a existing bug or has this bug already been addressed.
    My setup.
    NT 4.0 / jdk1.3.1
    Thanks,

    I found this works.
    Iterator e = _props.keySet().iterator();
    while(e.hasNext())
    String str = (String)e.next();
    System.out.println("key(" + str + ")=" + _props.getProperty(str));
    but the display sequence is always in descending order ???
    Anyone has a clue ?
    Input :
    catch#2 Prop catch#2
    prop2 Properties.test.2
    catch#6 Prop catch#6
    catch#3 Prop catch#3
    catch#5 Prop catch#5
    catch#4 Prop catch#4
    prop3 test Properties
    prop4 test Properties4
    prop1 Properties.test.1
    catch#1 Prop catch#1
    Output:
    prop4=test Properties4<
    prop3=test Properties<
    prop2=Properties.test.2<
    prop1=Properties.test.1<
    catch#6=Prop catch#6<
    catch#5=Prop catch#5<
    catch#4=Prop catch#4<
    catch#3=Prop catch#3<
    catch#2=Prop catch#2<
    catch#1=Prop catch#1<

  • Parent keyword not applied when child (nested?) is selected

    All,
    I apologize if this has been answered somewhere else. I did a search and didn't come up with a solution.
    In Bridge I set up a heirarchy of keywords.
    United States
        |___ Colorado
            |___ Denver
    In this scenario when I selected Denver, Colorado and United States were also selected. When I perform the same operation in LR3 only "Denver" is selected. I should point out that the selected image has no keywords applied before I select "Denver." Where is the preference located that will allow me to change this behavior? I want Colorado and United States to be applied when I choose United States.
    Thank you

    When you apply a subkeyword to an image, the containing keywords are implicitly applied to the image within the catalog. In your example, when you apply Denver to an image, Colorado and United States are also implicitly applied.
    When you search for a keyword using the Library Filter Bar, Smart Collections, or the right-panel Keyword List, LR will always include images with the keyword's contained subkeywords.  For example, if you search for United States, LR will also include Colorado and Denver.
    There are a couple of ways to control how LR writes the keywords into files' metadata:
    Right-click a keyword in the Keyword List pane, select Edit, and check/uncheck the option Export Containing Keywords.  When checked, LR will write the containing keywords of the keyword into files' metadata when you do Save Metadata To File or when you export the image.  In your example, if an image is tagged with Denver, then when the option is checked, Colorado and United States will also be written to the image's metadata.
    When LR writes keywords to a cataloged file's metadata, it stores the plain keywords in the standard metadata fields (XMP:Subject, IPTC:Keywords).  It also stores fully qualified hierarchical keywords in the field XMP:HiearchicalSubject (e.g. "United States|Colorado|Denver").  You can control whether that metadata field is added to images exported by File > Export using the export option Metadata > Write Keywords As Lightroom Heirarchy.

  • Different data returned when running report

    I have a report showing the diagnostic codes of all our patients.  Missing some codes in the report that are stored in the database.  Update one patient and get that record to show up, 2-3 other codes for other patients go missing.  Very weird.

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly

  • ORA-01403: no data found   when displaying a value from an   array

    I have a very simple pl/sql procedure like below which gives an error
    SQL> exec p_ks2;
    BEGIN p_ks2; END;
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "KINASE.P_KS2", line 21
    ORA-06512: at line 1
    if i uncomment the for loop the procedure works ... the loop has nothing to do with my array or what i am doing after it..
    could anyone help me to understand why i need a loop like that or what i am doing wrong when i am not having the loop there.
    ---- procedure
    CREATE OR REPLACE
    PROCEDURE p_ks2 as
    TYPE mdata IS TABLE OF number INDEX BY BINARY_INTEGER;
    data1 mdata;
    k integer;
    m number;
    begin
    data1(1) := 10;
    data1(2) := 20;
    data1(3) := 30;
    data1(4) := 40;
    data1(5) := 50;
    k :=3;
    --for mm in 10..11
    --loop
    -- m := mm;
    --end loop;
    dbms_output.put_line('value of data(' || k || '): ' || data1(k));
    end;
    /

    here is what i am trying.. when i do not have the for loop it fails. when I have the for loop it works eventhough for loop is really not doing anything related to my array.
    and in 10.x both works without error.
    I noticed you have the for loop uncommented when you posted the screen. Did it work when you have commented those lines out?
    SQL> select * from v$version
    2 ;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for Linux: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> CREATE OR REPLACE
    2 PROCEDURE p_ks2 as
    3
    4 TYPE mdata IS TABLE OF number INDEX BY BINARY_INTEGER;
    5 data1 mdata;
    6 k integer;
    7 m number;
    8
    9 begin
    10 data1(1) := 10;
    11 data1(2) := 20;
    12 data1(3) := 30;
    13 data1(4) := 40;
    14 data1(5) := 50;
    15
    16 k :=3;
    17 --for mm in 10..11
    18 --loop
    19 -- m := mm;
    20 --end loop;
    21
    22 dbms_output.put_line('value of data(' || k || '): ' || data1(k));
    23
    24
    25 end;
    26 /
    Procedure created.
    SQL>
    SQL> exec p_ks2;
    BEGIN p_ks2; END;
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "KINASE.P_KS2", line 21
    ORA-06512: at line 1
    SQL>
    SQL> CREATE OR REPLACE
    2 PROCEDURE p_ks2 as
    3
    4 TYPE mdata IS TABLE OF number INDEX BY BINARY_INTEGER;
    5 data1 mdata;
    6 k integer;
    7 m number;
    8
    9 begin
    10 data1(1) := 10;
    11 data1(2) := 20;
    12 data1(3) := 30;
    13 data1(4) := 40;
    14 data1(5) := 50;
    15
    16 k :=3;
    17 for mm in 10..11
    18 loop
    19 m := mm;
    20 end loop;
    21
    22 dbms_output.put_line('value of data(' || k || '): ' || data1(k));
    23
    24
    25 end;
    26 /
    Procedure created.
    SQL> exec p_ks2;
    value of data(3): 30
    PL/SQL procedure successfully completed.
    SQL>

Maybe you are looking for