Where's the clone() method implementation?

this was all i could get from src.jar..
protected native Object clone() throws CloneNotSupportedException;
where is the implementation?
thank you

So the implementation is in some library. And you have already seen the (Java) source. The native code is probably written in C or C++; I don't see any source like that in my Windows SDK so you probably don't have it in yours either.

Similar Messages

  • XmlBean usage and the clone() method.

    I'm trying to use the XmlBean class as the superclass for all our business objects and we have an issue with the usage of the clone method.
    Basically our business objects all throw the CloneNotSupportedException (as per Object.clone() signature) while XmlBean.clone() does not throw it. Introducing XmlBean into the hierarchy will cause quite a bit of effort to change clone() signatures for a lot of classes. So, we were wondering if there is any alternative to subclassing XmlBean while at the same time using the efficient caching that it gives us. I guess I'm looking for a "composition" approach rathe than an "inheritance" approach that might work.
    Has anyone faced this issue and is there any other workaround?
    Thanks,
    --Das                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    The reason that I asked is that the exception is "old baggage" from a design flaw in the original JDK 1.0 .. it is a checked exception that can never happen on an object that implements Cloneable, so if you don't throw it, and you implement Cloneable, then it won't be thrown on clone().
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Coherence: Shared Memories for J2EE Clusters

  • Where is the "printf" method?

    I have attended to a Sun TechDays lecture showing some new features of J2SDK 1.5 - one of the "hottest things" (hot for the guys with C background...) was the good old "printf" function.
    I have downloaded the alpha b31 release. Where is the "printf" function? Is it scheduled to be released in Tiger?
    I particularly do not like the "printf" and "scanf" functions, but "promise is debt" (literal translation from the Portuguese).
    It is not difficult to write a printf method using the new variance syntax. But the scanf method poses some problems:
    char *s = "1000 1.2";
    int d; float f;
    sscanf (s, "%d %f",  &d, &f);
    String s = "1000 1.2";
    StringReader sr = ...;
    ___ d = new ___;
    ___ f = new ___;
    sr.scanf ("%d %f", d, f);I can't pass a "Integer" or a "Float" object because they are immutable. If I use the idiom "if you want to pass a int by reference, create a one-element array, pass the array, and get the first element" it will eternize the idiom:
    int[] d = new int[1];
    float[] f = new float[1];
    sr.scanf ("%d %f", d, f);Maybe scanf could return an Object[]. We will have
    Object[] o = sr.scanf ("%d %f");
    System.out.println (o[0]); //-- the first value
    System.out.println (o[1]); //-- the second valueUgly. If Java had tuples:
    <d, f> = sr.scanf ("%d %f");
    The "principle of minimum astonishment" rules against tuples, although they could be very useful (think the lots of JavaBeans that are created only to return two or three fields...)

    What about:
    Object[] array = new Object[2];
    sr.scanf ("%d %f", array);
    Integer i = (Integer) array[0];
    Float f = (Float) array[0];

  • Why doesn't reflection reveal the clone() method in arrays?

    I was surprised to discover that the following code does not reveal the method "clone()", even though you can call "clone()" on an Object[]. Can anyone explain why this is? I was hoping to use the Reflect API to clone an arbitrary object if it was Cloneable, and to throw an Exception otherwise. How can I do this?
    import java.lang.reflect.Method;
    public class Test {
         public static void main(String[] args) throws Exception {
              Object x;
              //pick a class
              x = new Object[] {};
              //is it Cloneable?
              System.out.print("The class " + x.getClass().getCanonicalName() + " is ");
              if(!(x instanceof Cloneable)) System.out.print("NOT ");
              System.out.println("Cloneable");
              System.out.println("-------");
              //what methods are available?
              Method[] meths = x.getClass().getMethods();
              for(Method m : meths) {
                   System.out.println(m.getName());
              System.out.println("-------");
    }

    Just to clarify. I know that clone() is protected in Object, but it is certainly a public method in array objects such as int[], float[], Object[] etc. Test: call clone() on any of these objects! Also, I realize that Cloneable does not itself guarantee the method clone(). Nevertheless, if you take a regular Cloneable object, such as a String, then typically, if you ran myObject.getClass().getMethods() on that object, you'd find the method clone() in the resulting list. i.e., that Class has overwritten Object's protected clone() method with a public clone() method. So since int[], float[] and all the rest have a clearly public clone() method, then why doesn't myFloatArray.getClass().getMethods() show me a method called "clone"? I guess it would have to have something to do with the fact that arrays are funny kinds of classes that are not properly handled by the Reflection API, but is it on purpose that clone() isn't available?

  • Where is the Clone Tool?

    i had picture it photo program on my computer before, it had a clone button , i now have adobe elements 10 ,in that i can't find a clone button , help please
    lorraine
    Message title was edited by: Brett N

      Right-click on the tool directly below the red-eye and then you can choose either the clone tool or the pattern tool.

  • Where is the Stop method for CWDI?

    All the other DMA classes have a Stop mehtod. Why not CWDI?

    Hi rcsj1,
    The Reset method should be used to stop the digital input. A command to stop but not reset the resources was not explicitly exported to be used with the ActiveX control CWDI. Hope that helps. Have a good day.
    Ron

  • Where is the "set" method for this ELEMENT?

    Hi
    I'm trying to understand the relationship between the DTD and XJS, and the JAXB generated code.
    Consider the example DTD, XJS, and generated source code (i.e., "value07.java") for ELEMENT value07, below ...
    QUESTION#1: Why is there no "set" method generated for ELEMENT "value07a" within the generated value07.java ???
    QUESTION#2: How to I code the DTD/XJS in order to force the generation of a "set" method in value07.java???.
    -- I want to be able to set a new value for ELEMENT "value07a" in order to generate an XML document containing the new value!!
    (NOTE: the reason that ELEMENT value07 (as well as other ELEMENTs) has only a single subelement, is in order to satisfy the XSLT definition in a preexisting application.)
    * * * this is the DTD* * *
    <!ELEMENT request                          (value01,value02,value03,value04,value05?,value06?,value07?,value08?,value09?,value10?,value11?,value12?,value13?,value14?,value15?,value16?,value17?,value18?)>
    <!ELEMENT value01                          (#PCDATA)>
    <!ELEMENT value02                          (#PCDATA)>
    <!ELEMENT value03                          (#PCDATA)>
    <!ELEMENT value04                          (value04a, value04b?)>
    <!ELEMENT value04a                          (#PCDATA)>
    <!ELEMENT value04b                          (#PCDATA)>
    <!ELEMENT value05                          (value05a, value05b?)>
    <!ELEMENT value05a                          (#PCDATA)>
    <!ELEMENT value05b                          (#PCDATA)>
    <!ELEMENT value06                          (value06a+)>
    <!ELEMENT value06a                          (#PCDATA)>
    <!ELEMENT value07                          (value07a+)>
    <!ELEMENT value07a                          (#PCDATA)>
    <!ELEMENT value08                          (value08a+)>
    <!ELEMENT value08a                          (#PCDATA)>
    <!ELEMENT value09                          (value09a+)>
    <!ELEMENT value09a                          (#PCDATA)>
    <!ELEMENT value10                          (value10a+)>
    <!ELEMENT value10a                          (#PCDATA)>
    <!ELEMENT value11                          (value11a+)>
    <!ELEMENT value11a                          (#PCDATA)>
    <!ELEMENT value12                          (value12a+)>
    <!ELEMENT value12a                          (#PCDATA)>
    <!ELEMENT value13                          (value13a+)>
    <!ELEMENT value13a                          (#PCDATA)>
    <!ELEMENT value14                          (value14a+)>
    <!ELEMENT value14a                          (#PCDATA)>
    <!ELEMENT value15                          (value15a+)>
    <!ELEMENT value15a                          (#PCDATA)>
    <!ELEMENT value16                          (value16a+)>
    <!ELEMENT value16a                          (#PCDATA)>
    <!ELEMENT value17                          (value17a+)>
    <!ELEMENT value17a                          (#PCDATA)>
    <!ELEMENT value18                          (value18a+)>
    <!ELEMENT value18a                          (#PCDATA)>
    * * * this is the XJS * * *
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE xml-java-binding-schema SYSTEM "http://java.sun.com/dtd/jaxb/1.0-ea/xjs.dtd">
    <xml-java-binding-schema version="1.0-ea">
    <options package="testSourceCode"/>
    <element name="request" type="class" root="true"/>
         <element name="value01"                               type="value"/>
         <element name="value02"                               type="value"/>
         <element name="value03"                          type="value"/>
         <element name="value04" type="class">
              <content>
                   <element-ref name="value04a" />
                   <element-ref name="value04b" />
              </content>
         </element>
         <element name="value05" type="class">
              <content>
                   <element-ref name="value05a" />
                   <element-ref name="value05b" />
              </content>
         </element>
         <element name="value06" type="class">
              <content>
                   <element-ref name="value06a" />
              </content>
         </element>
         <element name="value07" type="class">
              <content>
                   <element-ref name="value07a" />
              </content>
         </element>
         <element name="value08" type="class">
              <content>
                   <element-ref name="value08a" />
              </content>
         </element>
         <element name="value09" type="class">
              <content>
                   <element-ref name="value09a" />
              </content>
         </element>
         <element name="value10" type="class">
              <content>
                   <element-ref name="value10a" />
              </content>
         </element>
         <element name="value11" type="class">
              <content>
                   <element-ref name="value11a" />
              </content>
         </element>
         <element name="value12" type="class">
              <content>
                   <element-ref name="value12a" />
              </content>
         </element>
         <element name="value13" type="class">
              <content>
                   <element-ref name="value13a" />
              </content>
         </element>
         <element name="value14" type="class">
              <content>
                   <element-ref name="value14a" />
              </content>
         </element>
         <element name="value15" type="class">
              <content>
                   <element-ref name="value15a" />
              </content>
         </element>
         <element name="value16" type="class">
              <content>
                   <element-ref name="value16a" />
              </content>
         </element>
         <element name="value17" type="class">
              <content>
                   <element-ref name="value17a" />
              </content>
         </element>
         <element name="value18" type="class">
              <content>
                   <element-ref name="value18a" />
              </content>
         </element>
    </xml-java-binding-schema>
    * * * generated sourcecode for ELEMENT "value07"...i.e., "value07.java" * * *
    package testSourceCode;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import javax.xml.bind.ConversionException;
    import javax.xml.bind.Dispatcher;
    import javax.xml.bind.Element;
    import javax.xml.bind.InvalidAttributeException;
    import javax.xml.bind.InvalidContentObjectException;
    import javax.xml.bind.LocalValidationException;
    import javax.xml.bind.MarshallableObject;
    import javax.xml.bind.Marshaller;
    import javax.xml.bind.MissingContentException;
    import javax.xml.bind.PredicatedLists;
    import javax.xml.bind.PredicatedLists.Predicate;
    import javax.xml.bind.StructureValidationException;
    import javax.xml.bind.UnmarshalException;
    import javax.xml.bind.Unmarshaller;
    import javax.xml.bind.Validator;
    import javax.xml.marshal.XMLScanner;
    import javax.xml.marshal.XMLWriter;
    public class Value07
    extends MarshallableObject
    implements Element
    private List _Value07A = PredicatedLists.createInvalidating(this, new Value07APredicate(), new ArrayList());
    private PredicatedLists.Predicate pred_Value07A = new Value07APredicate();
    public List getValue07A() {
    return _Value07A;
    public void deleteValue07A() {
    _Value07A = null;
    invalidate();
    public void emptyValue07A() {
    Value07A = PredicatedLists.createInvalidating(this, predValue07A, new ArrayList());
    public void validateThis()
    throws LocalValidationException
    if (_Value07A == null) {
    throw new MissingContentException("value07a");
    public void validate(Validator v)
    throws StructureValidationException
    public void marshal(Marshaller m)
    throws IOException
    XMLWriter w = m.writer();
    w.start("value07");
    for (Iterator i = _Value07A.iterator(); i.hasNext(); ) {
    w.leaf("value07a", ((String) i.next()).toString());
    w.end("value07");
    public void unmarshal(Unmarshaller u)
    throws UnmarshalException
    XMLScanner xs = u.scanner();
    Validator v = u.validator();
    xs.takeStart("value07");
    while (xs.atAttribute()) {
    String an = xs.takeAttributeName();
    throw new InvalidAttributeException(an);
    List l = new ArrayList();
    while (xs.atStart()) {
    if (xs.atStart("value07a")) {
    xs.takeStart("value07a");
    String s;
    if (xs.atChars(XMLScanner.WS_COLLAPSE)) {
    s = xs.takeChars(XMLScanner.WS_COLLAPSE);
    } else {
    s = "";
    String uf;
    try {
    uf = String.valueOf(s);
    } catch (Exception x) {
    throw new ConversionException("value07a", x);
    l.add(uf);
    xs.takeEnd("value07a");
    } else {
    break;
    Value07A = PredicatedLists.createInvalidating(this, predValue07A, l);
    xs.takeEnd("value07");
    public static Value07 unmarshal(InputStream in)
    throws UnmarshalException
    return unmarshal(XMLScanner.open(in));
    public static Value07 unmarshal(XMLScanner xs)
    throws UnmarshalException
    return unmarshal(xs, newDispatcher());
    public static Value07 unmarshal(XMLScanner xs, Dispatcher d)
    throws UnmarshalException
    return ((Value07) d.unmarshal(xs, (Value07 .class)));
    public boolean equals(Object ob) {
    if (this == ob) {
    return true;
    if (!(ob instanceof Value07)) {
    return false;
    Value07 tob = ((Value07) ob);
    if (_Value07A!= null) {
    if (tob._Value07A == null) {
    return false;
    if (!_Value07A.equals(tob._Value07A)) {
    return false;
    } else {
    if (tob._Value07A!= null) {
    return false;
    return true;
    public int hashCode() {
    int h = 0;
    h = ((127 *h)+((_Value07A!= null)?_Value07A.hashCode(): 0));
    return h;
    public String toString() {
    StringBuffer sb = new StringBuffer("<<value07");
    if (_Value07A!= null) {
    sb.append(" value07a=");
    sb.append(_Value07A.toString());
    sb.append(">>");
    return sb.toString();
    public static Dispatcher newDispatcher() {
    return Request.newDispatcher();
    private static class Value07APredicate
    implements PredicatedLists.Predicate
    public void check(Object ob) {
    if (!(ob instanceof String)) {
    throw new InvalidContentObjectException(ob, (String.class));

    I discovered something similar this morning...i.e., for
    <element name="value07" type="class">
    <content>
    <element-ref name="value07a" />
    </content>
    </element>
    -- I did something like this...
    Value7 v7 = new Value7();
    for (int i=0; i< Value7_input_array.length; i++)
    ((List)(v7.getValue07A())).add(Value7_input_array);
    Thanks for responding, barry!

  • Where is the onAck() method in the ABAP proxy framework?

    When working with client proxies there is the possibility of requesting acknowledgements from the receiving party. This will result in a acknowledgement message being sent back after successful delivery (technical acknowledgement) or successful processing of the message.
    Java proxies support a callback mechanism by providing an interface com.sap.aii.proxy.xiruntime.ack.AckListenerLocal containing the method.
    onAck(com.sap.aii.proxy.xiruntime.ack.AckMessage ack)
    An implementation of this interface can be registered to handle the acknowledgment for a specific proxy.
    How does this work for ABAP? Is there an ABAP OO interface? Is there a way of registering some handler for acknowledgements by any means?
    Thanks for any response on this!

    That is bitter truth to hear. I do not understand that because it sounds simple and obvious to provide. Thanks anyway Stefan.
    If anybody has a good idea how to setup a trigger that will run upon the receipt of an acknowledgement (not with polling) it would be highly appreciated.
    Edited by: Jochen Damzog on May 10, 2011 8:51 AM

  • Where is the connection pooling implemented?

    Hi!
    I�m a bit curious. Does anybody know where the connection pooling is implemented? Is it in the provider or in the Oracle client?
    Best regards,
    Mattias Alm�n, Consignit AB

    It is implemented in the provider.
    Thanks
    Martha

  • Where is the SOAP Method in XI generated WSDL?

    Hi Experts,
    I have generated a WSDL from XI for the outbound interface. The web application developer is using this WSDL to send a SOAP request from the web application, but he is not finding a SOAPMethod in the WSDL. Could someone please tell how the XI generated WSDL is to be used from a web application?
    Thanks,
    Shobhit

    Thanks Prateek, but could you send me some document / link on how to send a SOAP request to an XI generated webservice. Is it in any ways different to a regular webservice deployed on a http server.
    We are trying to send a SOAP request using a .Net based application. Any clues / leads on how to send the request using the XI generated WSDL.
    Appreciate your help.
    Thanks,
    Shobhit
    p.s. i have the following in my WSDL:
         <wsdl:binding name="OB_NP_WorkOrderDetails_MIBinding" type="p1:OB_NP_WorkOrderDetails_MI"
                      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
              <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"
                                      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
              <wsdl:operation name="OB_NP_WorkOrderDetails_MI">
                   <soap:operation soapAction="http://sap.com/xi/WebService/soap1.1"
                                                        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
                   <wsdl:input>
                        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
                   </wsdl:input>
                   <wsdl:output>
                        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
    Edited by: Shobhit Swarup Mathur on Aug 4, 2008 10:51 AM

  • Where is the paint method?

    The book I have says it's in the JApplet class, but I can't find it there. Thx

    Whoops sorry, already found it in the Java.awt.Container class.

  • Forced method implementation

    Where do I go to suggest modifications to the Java language?
    I sometimes have a method that I wish to implement in a class and force all sub-classes to implement this method as well. There is not really any way in java to do this.
    A good example (although I could give many more) is the clone() method. I want a super-class to be able to implement the clone() method to copy all of it's fields. I then want a sub-class to implement the clone() methd to copy the fields specific to that sub-class. The problem is that if the sub-class doesn't implement the clone method, everything still compiles just fine, you just blow up at run-time wondering why you only have half an object.
    I first thought that you could simply revise the rules surrounding the abstract keyword so that it allows you to provide implementation in an abstract base class and still require sub-classes to implement, but this doesn't work if your base class is concrete as well.
    As this is the opposite of final, I looked up final in a Thesaurus and ended up with "elementary." Any other suggestions?
    Where do I write this up?
    thanks.

    Are you kidding me?
    I mean, I know that deep inheritance chains are clues to a bad design, but often? Take a look at the java libraries, bub! Reader and InputStream, e.g.
    Take a look at the most basic example of inheritance: shape. A line is a shape. So is a circle, but they both sub-class the draw method. A rectangle is also a shape, but it has sides unlike a line or a circle, so it has extra properties. Every math textbook I've ever seen says that a rectangle is a special case of square, and you're telling me it might not be a sub-class because it needs to store the values of it's sides separately?
    I'm not defending my design, because I don't feel like I have to. This is not an exception type of thing. There's far too many good reasons to do something like this for you to tell me this is a bad idea without me even providing an example.
    But sense I'm a fair guy, I will anyway.
    I have a Person class. Person is important in our system because it is a container of name, address, social security number, etc. Lots of information. It is a concrete class because there are people in our system who simply pass in and out without us doing anything with them.
    Extended from person are classes Administrator and Participant, which, even though they are siblings, they are as different as night and day. An administrator is a contact point, not even a user, with special business rules. A participant is the person we're interested in in our app with specialized business rules and state that evolves over the course of time, sometimes years.
    Do either of these seem like they're not people because they have lots of additional information other than what the person class does? Or maybe you think that simply because it has a concrete base class it shouldn't have a clone method?
    Because if I don't implement the clone method at the person level, both sub-classes have to know all that stuff about their super-class which breaks encapsulation.
    How about asking a question or two next time before jumping to conclusions about other people's code?

  • Cannot use clone() method of LinkedList...That's strange

    I got a very strange problem. I wrote the following statement:
    Integer[] nums = generateRandomIntegerArray();
    List<Integer> list = new LinkedList<Integer>(Arrays.asList(nums));
    List<Integer> clone = list.clone();
    .....I got an error statement: cannot find symbol-method clone().
    When I use other methods it's fine, but I cannot use clone().
    That's really strange. I've checked many times, clone() method does exist
    in the LinkedList class.

    Your list variaiable is to an object implementing the interface List and clone is not part of the List interface. To get to the clone method you must cast it back to LinkedList, or use a LinkedList reference.

  • What time should I use clone method?

    Hi everyone:
    There is a problem puzzled me all the time. You know,If I want to use a object I could use the code:
    Class A=new Class(); I get a object A so I can use it. But there is a method called "clone".It's function is copy a object.But Why jdk have this method.Is there any useful ?
    I mean that what situation should I use the "clone " method?
    Thks!

    a regular clone copies all members of an object by reference. You can implement the Clonable interface to provide a clone which makes a 1:1 copy of your object, so no references are copied over. This ensures that the objects don't share the same objects, but do have the exact same content.

  • Use VB Set keyword with Clone method?

    I am using the TestStand API with Visual Basic 6.0 SP5. Is is necessary to use the Set keyword when calling the Clone method of a PropertyObject? i.e. which is correct:
    Set thePropObj = existingPropObj.Clone("", 0)
    or
    thePropObj = existingPropObj.Clone("", 0)
    Seems the Set keyword would be required, but I am
    running into funny problems with this. I have a step
    that I am trying to create a copy of. (The step contains a call to a LabVIEW VI.) If I omit the Set keyword, execution hangs at the call to Clone. If I include the Set keyword, all information present in the original PropertyObject doesn't seem to get copied to the new one. (Also, oddly enough, if I omit the set keyword, and the step calls a CVI function, everything seems to work
    fine!)
    Anyone have any advice?
    Thanks in advance
    D. LaFosse

    Hello LaFosse,
    You need to use the Set keyword before the clone method statement. However, I have a couple of comments about the code you sent.
    This is the code you sent:
    ' Start up the testStand engine
    Dim theTS As TS.Engine
    Set theTS = New TS.Engine
    ' OK, load in the sequence file I
    ' created. This sequence file
    ' contains nothing more than a call
    ' to a VI in the main stepgroup of
    ' the MainSequence.
    Dim seqFile As SequenceFile
    Set seqFile =
    theTS.GetSequenceFile()
    ' get a handle to the MainSequence
    Dim seq As Sequence
    Set seq = seqFile.GetSequenceByName
    ("MainSequence")
    ' Get a handle to the step that calls
    ' the VI, and a property object for
    ' the step
    Dim theStep As Step
    Set theStep =
    seq.GetStep(0, StepGroup_Main)
    Dim theStepProp As PropertyObject
    Set theStepProp =
    theStep.AsPropertyObject
    ' Create another step. We will attempt
    ' to use Clone to fill in the
    ' properties of this step.
    Dim theOtherStep As Step
    Dim theOtherStepProp As PropertyObject
    Set theOtherStep = theTS.NewStep("",
    TS.StepType_Action)
    Set theOtherStepProp =
    theOtherStep.AsPropertyObject
    ' Call clone...this step will hang.
    theOtherStepProp =
    theStepProp.Clone("", 0)
    Basically the problem is that you are not loading the TypePallete after creating the engine. You shoud include right after the Set theTS = New TS.Engine:
    theTS.LoadTypePaletteFiles
    This should avoid the crash.
    Some Additional comments:
    1. With VB you don't need to create property objects from other objects. All the classes, except the Engine Class, inherit from the Property Object Class. The following Code does the same thing, but without creating propertyobjects directly:
    Sub MySub()
    'Variable Declaration
    Dim theTS As TS.Engine
    Dim seqFile As SequenceFile
    Dim seq As Sequence
    Dim theStep As Step
    Dim theOtherStep As Step
    'Create the Engine
    Set theTS = New TS.Engine
    'Load the Types
    theTS.LoadTypePaletteFiles
    'Get Sequence File
    Set seqFile = theTS.GetSequenceFile()
    'Get Sequence
    Set seq = seqFile.GetSequenceByName("MainSequence")
    'Get Step
    Set theStep = seq.GetStep(0, StepGroup_Main)
    'Clone the Step
    Set theOtherStep = theStep.Clone("", 0)
    'Using the inheritance functionality
    'gets the Step Status
    'Notice that theOtherStep is not a PropertyObject
    'and you can use all the properties and methods that
    'applies to the PropertyObject Class to a Step class
    'in this example
    'Also, in VB when you are typing the statement, you
    'will not see the PropertyObject Class properties and
    'and Methods automatically if the variable is not a
    'PropertyObject type. However, you can still use them
    'as mentioned before
    MsgBox (theOtherStep.GetValString("Result.Status", 0))
    End Sub
    2. When you create or modify sequence files programatically be carefull not to break the license Agreement. You need the development lisence when modifying sequences.
    3. This piece of code is not completed, and you will need to shutdown the engine by the end.
    4. Since you are not handling UI Messages, you will need to be carefull when loading sequences that have the SequenceFileLoad Callback. The engine posts UI Messages when executing this callback. Also when you shutdown the engine, UI Messages are posted. For both operations (Load Sequence and Shuutdown) you may prevent the engine from posting the message (You may check the options parameter for this two methods in TS Programmer Help.)
    5. If you want to run a sequence, again you will need to incorporate in your code the UIMessage Handler part. (You may check the TS Programmer Help->Writing an Application Using the API->UI Messages). Otherwise it may hang since the engine posts UI Messages eventually.
    Regards,
    Roberto Piacentini
    National Instruments
    Applications Engineer
    www.ni.com/support

Maybe you are looking for

  • IPhoto calls it "key photo", equivalent in iMovie?

    Hello! I'm wasting a lot of time searching for the right keyword for what I'm trying to do, ack! Please help! My video starts with the orange linen background and then the titles swoop in. When I export the video the image I see in Finder is this bla

  • Error -195067896​5 Shared Variable

    I have a VI that reads a SV array. If I just plop this down on a blank vi and hit the run key it works fine with no errors. But when I put it inside of a loop it runs once then gives me this error. It doesn't matter how long of a wait I put into the

  • Where to look for the newest IISPROXY?

    According to note 629946, we cannot find it at all. Please help, points will be given, thanks!

  • Sync probsi

    Hi, I'm new to iCal and am trying to sync my calendars and to do lists to my iPod but something isn't write. I have my iTunes set up to manually manage my content; under the Contacts tab I have the "Sync Address Book Contacts" and "Sync iCal Calendar

  • Flooding listening port does

    Hello, I have just been doing some perfomance testing on one of our applications . This application is running as a jboss service on CENTOS(linux) listening for requests on a particular port, whilst testing I discovered that if this service received