Step through code ....VB debugging

Hi,
What window can I use to watch the variables value as you step through the code?
Fenix  

Please move your post to VS forum for a better assistance on this, this forum is for VB code related issues only:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=visualstudiogeneral
Fouad Roumieh

Similar Messages

  • Stepping through code with Procedure Builder

    I know this can be done, but can't seem to do it.
    Can anyone provide me with the requirements? Too many
    DBMS_OUTPUT's!
    Thanks.
    -Loren

    Hello,
    you are navigating throug the taxdata repository which is only a background repository and should not be used via API. Use in your first line:
    RID rid = RID.getRID("/taxonomies/an_Index/a_tax/b");
    Regards,
    Achim

  • Code works fine when stepping through debug, but not without debug

    I have the following code that works fine when I step through with the debugger, but when I run it with out the debugger it never gets the objects in the "moveObjects" method. I would appreciate any help. Thank you
    import com.crystaldecisions.sdk.exception.SDKException;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.plugin.desktop.program.IProgramBase;
    import com.crystaldecisions.sdk.plugin.desktop.common.*;
    import com.crystaldecisions.sdk.framework.*; //cesession
    import com.crystaldecisions.sdk.plugin.desktop.program.*; //ceplugins
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    import com.crystaldecisions.sdk.occa.infostore.*;
    import com.crystaldecisions.sdk.properties.IProperties;
    import com.crystaldecisions.sdk.plugin.destination.managed.*;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.util.*;
    import java.sql.ResultSet;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.DriverManager;
    * @author ag0310m
    public class MoveRptInstance implements IProgramBase {
        public void run(IEnterpriseSession enterpriseSession, IInfoStore iStore, java.lang.String[] args) {
            try {
                IInfoObjects objects = null;
                IInfoObjects objs = null;
                IProperties props = null;
                try {
                    getObjectsToSend(objects, iStore);
                    moveObjects(iStore);
                } catch (SDKException e) {
                    //ExamplesUtil.WriteError(request, response, e, "RETRIEVE_ERROR", errorpagerfile);
                    System.out.println(e.toString());
                    //out.clear();
                    return;
            } catch (Exception ex) {
                ex.printStackTrace();
        private void getObjectsToSend(IInfoObjects objects, IInfoStore iStore) throws SDKException {
                        objects = null;
                        objects = iStore.query("Select * from CI_INFOOBJECTS where si_name = 'ReportBurstingTest' and si_instance = 1 and si_recurring = 0");
                        try {
                              sendObjects(objects, iStore);
                         } catch (Exception e) {
                             System.out.println(e.getLocalizedMessage().toString());
                             e.printStackTrace();
                         } finally {
        private void moveObjects(IInfoStore iStore) throws SDKException {
                        IInfoObjects iObjects = null;
                        iObjects = iStore.query("Select * from CI_INFOOBJECTS where si_parentid = 716");
                            int x = iObjects.size();
                            System.out.println("value of x = "+x);
                            for (int ii = 0; ii < x; ii++) {
                                IInfoObject obj = (IInfoObject) iObjects.get(ii);
                                obj.setParentID(868003);
                           iStore.commit(iObjects);                   
        private void sendObjects(IInfoObjects oInfoObjects, IInfoStore infoStore) throws SDKException {
         //Grab the first object in the collection, this will be sent.
            int x = oInfoObjects.size();
            System.out.println("3");
            for (int i = 0; i < x; i++) {
                IInfoObject infoObject = (IInfoObject)oInfoObjects.get(i);
                ISendable obj = (ISendable)infoObject;
                IDestinationPlugin destinationPlugin = getDestinationPlugin(infoStore, infoObject.getKind(), infoObject.getTitle(), infoObject.getUpdateTimeStamp());
                IDestination destination = obj.getSendToDestination();     
                destination.setFromPlugin(destinationPlugin);
        //Send the InfoObjects.
        infoStore.sendTo(oInfoObjects);
        private IDestinationPlugin getDestinationPlugin(IInfoStore infoStore, String kind, String title, Date dte) throws SDKException {
         //Retrieve the Managed Destination plugin from the InfoStore
        //this should be cast as an IDestinationPlugin *DON'T FORGET THE get(0) AT THE END**
        IDestinationPlugin destinationPlugin = null;
        destinationPlugin = (IDestinationPlugin)infoStore.query("SELECT TOP 1 * " +                                                                               
    "FROM CI_SYSTEMOBJECTS " +
                                                                                    "WHERE SI_NAME='CrystalEnterprise.Managed'").get(0);
        //Retrieve the Scheduling Options.
        //This interface is the one which allows us to add the file location for the scheduling.
        IManagedOptions managedOptions = (IManagedOptions) destinationPlugin.getScheduleOptions();
        managedOptions.setDestinationOption(IManagedOptions.CeDestinationOption.ceInbox);
        managedOptions.setIncludeInstance(true);
        managedOptions.setTargetObjectName(title+" - "+dte.toString());
        managedOptions.setSendOption(IManagedOptions.CeManagedSendOption.ceCopy);
        //Set of users that will receive the instance. 
        Set userSet = managedOptions.getDestinations();
        //Query for the id of a particular user that will receive the instance.
        IInfoObjects users = null;
            users = infoStore.query("SELECT TOP 1 SI_ID " +
                                 "FROM CI_SYSTEMOBJECTS " +
                                 "WHERE SI_NAME='Administrator' AND SI_PROGID='CrystalEnterprise.User'");
            if (users.size() > 0) {
             IInfoObject user = (IInfoObject)users.get(0);     
             int id = user.getID();
             userSet.add(new Integer(id));
         return destinationPlugin;

    I'm assuming SI_ID=716 is the Inbox where you're sending the objects.
    The issue is that you're not clicking the "Step Over" button fast enough when debugging.  If you click really fast, then you'll get the same issue.
    Workaround for the non-debug case is to count the number of objects you're sending, then when moving, loop till the InfoStore query retrieves the correct number of objects.
    You're not giving enough time for the Destination Job Server to send the objects to the Inbox - they're not there yet.
    Sincerely,
    Ted Ueda
    Edit:  I see you've identified the issue as well - note that the CMS job scheduling thread triggering interval isn't under programmatic control, so I'd still recommend loop-count-wait workflow.
    Edited by: Ted Ueda on Oct 22, 2009 11:59 AM

  • Code works when I step through it, not when run real-time though.

    Hi,
    I have a bit of code, a trivial problem in fact, that has completely defeated me.
    private int recFibonacci(int N, long starTime) {
            long totalTime = System.currentTimeMillis() - starTime;
            if(N <= 0) return -3;  //negatives not allowed
            try {
                if (N < 2) {
                    return N;
                } else {
                    if (totalTime <= 1500) { //if it takes longer than 15 seconds, end.
                        N = recFibonacci(N - 2, starTime) + recFibonacci(N - 1, starTime);
                    } else {
                        return -1;//return if taking too long
            } catch (StackOverflowError ex) {
                return -2;//return if overflow
            return N;
    //This is the user accessible function for the recursive fibonacci method.
    //It calls the private fibonacci function and passes it a startTime value.
    //This is so that the startTime is only set at the user's call, not each time the
    //function recurses.
        public int recFibonacci(int N) {
            setTime();
            int retN = this.recFibonacci(N, getStartTime());
            if (retN == -1) {
                System.out.println("Calculation is is taking too long, try a non-recursive solution.");
                return -1;
            if (retN == -2) {
                System.out.println("Stack overflow, recursed too deeply.  Try a non-recursive solution, or a smaller number.");
                return -2;
            if (retN == -3){
                System.out.println("Fibonacci sequence is undefined for negative numbers.");
                return -3;
            return retN;
        }From the driver I call the single argument method.
    When I debug and step through the code it runs perfectly. If the number is large enough to take a little while to execute,i get the appropriate error message. Also, if the number causes a stack overflow, I get that message as well.
    When I run the code (realtime not stepping) I always get a strange return value if N is too large. Its always a different value, and I never receive the error code. I am at a complete loss to explain this discrepency.
    Any ideas?

    Seems to me your problem could be the same as this poster's:
    [Problem With Recursion|http://forum.java.sun.com/thread.jspa?threadID=5270481]
    db

  • Stepping through the code

    Using Eclipse, latest build, on a Mac, I'm stepping through the FlexPMD code.  I enter in the debug configuration the parameters "-s <src dir>" and "-o <output dir>".  Those arguments are successfully passed into FlexPMD but when the FileUtils tries to locate the Flex source files, I have some ActionScript, *.as, files in the <src dir>, I get an error:
    Exception in thread "main" net.sourceforge.pmd.PMDException: sourceDirectory does not contain any Flex sources (Specify the source directory in relative (not absolute))
        at com.adobe.ac.pmd.files.impl.FileUtils.getFlexFiles(FileUtils.java:107)
        at com.adobe.ac.pmd.files.impl.FileUtils.computeFilesList(FileUtils.java:52)
        at com.adobe.ac.pmd.FlexPmdViolations.computeFiles(FlexPmdViolations.java:128)
        at com.adobe.ac.pmd.FlexPmdViolations.computeViolations(FlexPmdViolations.java:92)
        at com.adobe.ac.pmd.engines.AbstractFlexPmdEngine.computeViolations(AbstractFlexPmdEngine.ja va:153)
        at com.adobe.ac.pmd.engines.AbstractFlexPmdEngine.executeReport(AbstractFlexPmdEngine.java:1 36)
        at com.adobe.ac.pmd.commandline.FlexPMD.startFlexPMD(FlexPMD.java:115)
        at com.adobe.ac.pmd.commandline.FlexPMD.main(FlexPMD.java:69)
    Since the 'args' parameter in the main function is getting the '-s' and '<src dir>' parameters, I'm not sure what is it complaining.  I don't see anything in the source code what those parameters are being discarded.
    Any ideas?
    Thanks
    Brenda

    Hi Brenda!
    I don't think I understood your problem.
    The error you mentioned means that the source folder you specified does not contain any Flex source files (*.as, *.mxml)
    Are you saying that you have a folder with Flex source files, and that those files are not picked up by FlexPMD?
    Any FlexPMD clients (command-line, Maven, Ant, ...) are using AbstractFlexPmdEngine which uses the class FlexPmdParameters
    I don't see any reasons why your source folder would be discarded.
    Best
    Xavier

  • Can I instruct the debugger to step through triggered events as well?

    I have the following statements in my code:
    Public Class Class1
    Public Shared Sub TestClass()
    Dim ExlApp As Excel.Application = CType(AddinModule.CurrentInstance, TimeTracker.AddinModule).ExcelApp
    ExlApp.Range("A1").Value = "Test"
    ExlApp.Range("A2").Value = "When I press F11 the debugger jumps to this row from test"
    End Sub
    End Class
    When I step through the debugger, it jumps directly from the first statement above to the second. But inbetween those rows some events are triggered. Is there any way to tell the debugger to not jump over these events but instead step into these events?

    Hi JP3O,
    Since it is related to the specific VB app, to really repro this issue, could you share me the sample?
    >>But inbetween those rows some events are triggered.
    Maybe you could add breakpoints in your events, and then debug your whole app with "Start debugging (F5)", and make sure that the code is really called (the breakpoints were hit)or it has been called before the code shared in your thread.
    Or it is related to the JIT:
    https://msdn.microsoft.com/en-US/library/7ad07721(v=vs.100).aspx 
    If the breakpoints in evens are not hit, please check whether you could get any message if you put the mouse on the breakpoints. Maybe it is related to the symbols loaded or others.
    If you get any latest information, please feel free to let me know.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Exception while accessing web service through code

    I have a web service developed using AXIS deployed on Weblogic 8.1
    Another web application cotaining GUI deployed on Weblogic 10 tries to access this web service through code.
    This piece of code to invoke the web service is written in Action Class present inside web application. (Struts is used in GUI based web app)
    When the code tries to invoke web service I am getting following error.
    (401)Unauthorized xxx
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
         at org.apache.axis.client.Call.invoke(Call.java:2553)
         at org.apache.axis.client.Call.invoke(Call.java:1753)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.invokeAx(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:243)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.callUCS77_1ProcessOfficialChangeWebService(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:173)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.processAction(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:133)
         at com.ebv.framework.web.action.EBVAction.execute(EBVAction.java:106)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    The web service URL is as follows:
    http://10.140.96.5:7808/services/ucs77_1/ProcessOfficialChangeSave77_1-v0001.soap
    However
    When I try to hit the webservice URL directly on browser login window appears where same username/password I provide which are passed in code to invoke the web service. I get the success page indicating that web service is invoked on hitting enter.
    The method used in UCS77_1ProcessOfficialChangeSaveDetailsAction.java to invoke web service is as follows:
    public String invokeAx
                   String xmlMessage,
                   String webServiceURL,
                   String webServiceOperation,
                   String username,
                   String password)
              String xmlResponse = null;
              Call webServiceCall = null;
              InputStream input = new ByteArrayInputStream(xmlMessage.getBytes());
              Service service = new Service();
              try
                   webServiceCall = (Call) service.createCall();
                   SOAPEnvelope env = new SOAPEnvelope(input);
                   SOAPEnvelope resEnv = null;
                   webServiceCall.setTargetEndpointAddress(new URL(webServiceURL));
                   webServiceCall.setOperationName(new QName(webServiceOperation));
                   webServiceCall.setUsername(username);
                   webServiceCall.setPassword(password);               
                   try
                        resEnv = webServiceCall.invoke(env);
                   catch (AxisFault e)
                        e.printStackTrace();
                        Message responseMessage = webServiceCall.getResponseMessage();
                        SOAPEnvelope soapXml = (SOAPEnvelope) responseMessage.getSOAPEnvelope();
                        xmlResponse = new String(soapXml.toString().getBytes(AppConstants.UTF8),AppConstants.UTF8);     
                   if (xmlResponse == null)
                        xmlResponse = resEnv.toString();
              catch (Exception e1)
                   e1.printStackTrace();
              return xmlResponse;
    Both the weblogic server reside on two different AIX machines.
    Can anybody tell what's the problem while invoking web service through code?

    time to look into the gateway logs as stated by the fault ..
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    looks like the cipher step might have failed

  • Can you set a BREAKPOINT and step through it

    Hello all,
    How do set a breakpoint in the app so that one can step through it and no where it is failing and the value of the variables returned?
    Thanks

    If you are trying to debug server side PL/SQL program units, you could use DBMS_DEBUG.
    http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10802/d_debug.htm#996728

  • Two step verification code entry keeps looping in Safari

    I've recently upgraded to a 5S, however when I try to purchase from the app store, it askes me to verify the device, as I have two step verification set up.
    However, it doesn't work.
    I get the verification code sent to my iPad, but when I type it into Safari on either the phone or my iMac, it keeps looping.
    The text is
    "We have sent a temporary verification code to [device name]. Enter the code to continue. Didn't receive a code?"
    When I enter the code, it flickers, then displays the same message.
    Help? I can't set up my 5S, I can't disable two-step through my iMac.
    Suggestions to overcome? (I do not have my Recovery Key either)

    Hi Nate...
    Might be Safari cookies, cache, or extensions.
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:  Remove All Website Data
    No open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, try troubleshooting extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Problem in Getting Step Data in "Start Debug" while Mappings

    I have two table, one of source and other from warehouse.
    I have mapped them Now when i debug them i could n't see any data in Step Data tab (Right window Pane). Let me also tell u that i can see data while i Press Edit in Test Data Tab (i.e. that table which belongs to source) and one other thing structure of both tables are same. Plz Reply Thanks.
    Other thing that when i deploy then they give me warning that u won't be able to retrieve the data from source table (i.e. Salary). whereas i m succefully viewing the data as i access it through DBLink (while debug session -> in test Data tab, while i press edit button )

    It sounds like you aren't connected to the target schema. Enter your target schema information in the Connection Information dialog.
    Regarding the retrieving data from the source table: did you set a location for the source module for this table? A location acts like a db link and tells the Deployment Manager the physical location of the data.

  • Stepping through a poorly formatted xml file

    Hi, this forum worked a charm earlier so I'm hoping it will go 2 for 2.
    Through a httpservice I'm reading an XML file into a ArrayCollection. Because the XML is so poorly formatted I'm having to write some very sloppy code just to step through 20 results. I have no control over the XML.
    XML Example (can be anywhere from 0 to 20 results):
    <results>
        <game>
            <type>game</type>
            <id>321</id>
            <name>gamename</name>
            <image>i34d.png</image>
        </game>
        <character>
            <type>character</type>
            <id>1123</id>
            <name>john</name>
            <image>sds.png/image>
        </character>
        <game>
            <type>game</type>
            <id>432</id>
            <name>examplename</name>
            <image>g2dss.png</image>
        </game>
    </results>
    Each result can be one of 7 types (I've done only 2, game and character, in my example). The order of them I really want to preserve in my ArrayCollection as it's very relevant.
    Here is the (very) sloppy way I'm currently loading each result into my AC:
    //container array
    var ac2:ArrayCollection = new ArrayCollection;
    //I do a block like this for EVERY results type. Meaning 7 in total...
    if (service2.lastResult.response.results.character) {
         var characterAC:ArrayCollection = new ArrayCollection;
         if (service2.lastResult.response.results.character is ArrayCollection) {
         //there is more than 1 entry
         characterAC = service2.lastResult.response.results.character as ArrayCollection;
         } else {
              //There is only 1 entry. Need to MAKE it an ArrayColleciton
              characterAC = new ArrayCollection([service2.lastResult.response.results.character]);
            //Add all characters to AC
         ac2.addAll(characterAC);
    The two major problems with this code is: 1, it's stupidly bloated and 2, ac2 no longer maintains the order of the XML response. First it puts all <character> into my AC, then it puts all <game> into AC. So on and so forth.
    In my head I'm trying to do something like this:
    ac2 = service2.lastResult.response.results.* as ArrayCollection;
    That would then load all results (regardless of type) into an ArrayCollection. I'm guessing a solution is not that simple...
    In an Ideal world, whoever created the XML api would just call each result <result> instead of the stupid type tags it currently uses.
    I hope all that makes sense.
    Regards,
    Zaph.

    @Zaph31,
    Why not use an XMLListCollection instead of an ArrayCollection?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="init();">
        <mx:XML id="iWouldntHaveCodedXMLLikeThat" xmlns="">
            <results>
                <game>
                    <type>game</type>
                    <id>321</id>
                    <name>gamename</name>
                    <image>i34d.png</image>
                </game>
                <character>
                    <type>character</type>
                    <id>1123</id>
                    <name>john</name>
                    <image>sds.png</image>
                </character>
                <game>
                    <type>game</type>
                    <id>432</id>
                    <name>examplename</name>
                    <image>g2dss.png</image>
                </game>
            </results>
        </mx:XML>
        <mx:XMLListCollection id="xmlListColl" />
        <mx:Script>
            <![CDATA[
                private function init():void {
                    xmlListColl.source = iWouldntHaveCodedXMLLikeThat.children();
            ]]>
        </mx:Script>
        <mx:DataGrid id="dg" dataProvider="{xmlListColl}">
            <mx:columns>
                <mx:DataGridColumn dataField="type" />
                <mx:DataGridColumn dataField="id" />
                <mx:DataGridColumn dataField="name" />
                <mx:DataGridColumn dataField="image" />
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    Peter

  • Stepping through table is very slow

    LV 7.0 on Win 2K
    I use a table to display records of information. The table is filled once at entry to a user interface subprogram and the user has the possiblity to select certain records by clicking or stepping through with the cursor buttons.
    I have also written subprograms to sort the table by the various columns. The active row is used to provide more information e.g. displaying it in an image.
    Usually you would click on a line with the mouse, but somtimes it is more convenient to step through subsequent lines with the cursor buttons.
    As it turned out the latter is sometimes very slow.
    I tried to trace that behaviour in my program, but it seems that the problem is within labview. I reduced the vi to a simple loop
    where nothing is done with the table except to display the value. If you click on a line the value will follow instantaniously. If you click on a line at the top of the table and then step down with the cursor buttons the value will also follow very quickly. But when you do the same while beeing at the bottom this will take several seconds.
    I read several entries in the forum that describe similar problems when updating the table. Please note that this is a very static table here. The only thing that is happening, is a user interacting with it with the keyboard.
    The answers I saw so far, suggesting to keep the table small, or switching to other indicators etc. seem to overlook the reason why to use the table; that is tp have a compact display of a lot of ordered information. If the reason is really within LV runtime. Than NI has a nice task to improve LV next time :-(
    Gabi
    7.1 -- 2013
    CLA
    Attachments:
    Tableaccess.zip ‏65 KB

    Unfortunately, I can confirm that LabVIEW 7.1 shows the same slow behavior. Actually pressing "down arrow" on my rig is so slow, it seems to lock up the PC. (W2k)
    Interestingly, if you capture the "up" and "down" arrows with a filter event, there is no slowdown! Maybe you can used the attached rough draft (LabVIEW 7.0) to improve the UI experience to the user until NI fixes the issue.
    Enjoy!
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Tableaccess.vi ‏266 KB

  • Is there any way to click the System Message Box button  through code?

    Hi,
    Is there any way to click the System Message Box button through code?
    Is there any way to restrict the System Message Box ?
    The requirement is, i need to open the MRP Wizard form in MRP.it s run automatically.after completion of the wizard is there finish button.after clicking of the finish button, there have a system message. i want to click on "Yes" button through coding.
    when system message box open.my code is stopped.if i press yes code is running.   
    Thanks in advance.

    Thanks for replay
    bellow given the code
    i am using, when i call the finishMrp function its going to take the itemId from XML and click to the finish button.
    There have a system message .when system message fair my debugging stopped. Please give me any idea.
    Public Function Execuate() As Boolean
    Dim strSQL As String
      Dim objRS As SAPbobsCOM.Recordset
        Dim intLoop As Integer
        Dim objForm As SAPbouiCOM.Form
        objForm = objAddOnCentral.objApplication.Forms.ActiveForm
        objRS = objAddOnCentral.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
        strSQL = "SELECT U_MRPCode From [@ACSYMRPLIST]"
        objRS.DoQuery(strSQL)
        If objRS.EoF Then
        Throw New Exception("No MRP Scenario Scheudled")
        Return False
        End If
    For intLoop = 1 To objRS.RecordCount
                objForm.Freeze(True)
                If intLoop = 1 Then
                initializeMRPRun()
                System.Windows.Forms.Application.DoEvents()
                Else
                reinitialize()
                System.Windows.Forms.Application.DoEvents()
                End If
                MRPRun(objRS.Fields.Item("U_MRPCode").Value)
                System.Windows.Forms.Application.DoEvents()
                objForm.Freeze(False)
                objRS.MoveNext()
            Nex
            finishMRPRun()
            Return True
        End Function
       Private Sub finishMRPRun()
            Dim strResource As String
            Dim objXML As New XmlDocument
            Dim objXMLNode As XmlNode
            Dim objXMLNodeList As XmlNodeList
            strResource = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name & "." & "AutoStart.xml"
            objXML.Load(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream(strResource))
            objXMLNodeList = objXML.SelectNodes("/AutoMRPScript/FinishMRP/Instruction")
            For Each objXMLNode In objXMLNodeList 'objXML.ChildNodes.Item(1).ChildNodes
                Select Case objXMLNode.Attributes("OPType").Value
                    Case "2"
                        systemMessageactiveFormButton(objXMLNode)
                End Select
            Next
        End Sub
    Private Sub systemMessageactiveFormButton(ByVal Instruction As XmlNode)
            Dim objForm As SAPbouiCOM.Form
            objForm = objAddOnCentral.objApplication.Forms.ActiveForm
            objForm.Items.Item(Instruction.Attributes("ItemID").Value).Click()
        End Sub
    Edited by: Badulla Sk on Dec 31, 2009 11:24 AM
    Edited by: Badulla Sk on Dec 31, 2009 11:25 AM

  • Step Through java.* Classes With JDB

    Here is a simple program:
    public final class HelloWorld {
      private HelloWorld() {
      public static void main(String[] args) {
        System.out.println("Hello, World!");
    }I compile it with the -g option, and run it in jdb:
    javac -g HelloWorld.java
    jdb HelloWorld
    I set a breakpoint in the main function...now I'm wondering why I can't step through the String constructor (or whatever magic happens behind the String literal syntax) and the println method calls. When I use step, it just skips over them! I find that I can set breakpoints in library methods, and use list to see the source, but as soon as I step it flies out of the library method and back to mine. Does anybody know what gives? Is it because the libraries aren't compiled with the -g option???

    Thanks for your quick input. It seems you're right about the libraries. I made a dummy class compiled with the -g:none option, added some more lines in the first class (compiled with -g), and ran it through jdb. It stepped over the methods from the class with no debug info...same way as before.
    This is annoying. Sun should really provide debug versions of their libraries.
    So how does JBuilder let you step through library methods? Did they take the Sun source and recompile it? Do they have a magic debugger?

  • Can't activate iPhone because Apple ID is locked 'for security reasons', can't reset Apple ID because need iPhone to receive two-step activate code!

    So here's an interesting one...
    I have just updated iOS on my iPhone and it came up with the activation prompt. I entered my iCloud email and password and it told me that my account was disabled for security purposes.
    This happens quite regularly as my iCloud account and I constantly get the account locked out as other people mistake it for their account.
    The procedure to unlock my account is to visit iforgot.apple.com and select the 'Reset your password' option, enter my iCloud email address, two-step recovery key and then nominate my iPhone to receive a two-step authentication code.
    The problem is my phone won't receive the authentication code because it needs activation! My iPad is also listed but also won't receive the authentication code, I expect because my Apple ID is disabled!
    Having read the support article regarding what to do when you can't receive the two-step authentication code it says login to your apple id account and manage the list of devices! You what!? I can't login because my account is disabled.
    It seems there is a complete design flaw here in that I can't activate my phone without unlocking my Apple ID and I can't unlock my Apple ID without activating my iPhone first!
    I've spoken to Apple in the past about this and their response was to login and manage my devices and I pointed out that I could not login in because my account is disabled. They then basically said there is nothing I can do! Really? They won't unlock my Apple ID because they don't have the ability to do so.
    If I'm not mistaken my iPhone is no longer fit for propose and if I can't sort this I will be visiting the Apple store and asking for a replacement as basically my device is bricked. I guess I will have to create a new Apple ID and will no longer be able to get to my email on the old account!?
    Any folks on here has similar issues or any suggestions?
    <Email Edited by Host>

    I have something similar going on, but not exact.  I basically have a useless phone here because I restored the phone but supposedly when my son's father redid the phone years ago for our son he added the phone to HIS apple id (on find my phoen supposedly) which he no longer has nor uses.  I need said apple id and pass to finish restoring the phone.  Maybe we should all get together and pile all our bricks in front of apple headquarters so no one can get out of the building and they have to stay there until they fix this.  :-P 

Maybe you are looking for