Big Chemical Encyclopedia

Chemical substances, components, reactions, process design ...

Articles Figures Tables About

Stepping through code

When your program produces an error during execution, or executes but doesn t produce the correct answer, it is often helpful to execute the code one statement at a time and examine the values of selected variables during execution. If your procedure contains logical constructions (If or Select Case, for example), simply stepping through code will allow you to verify the logic. [Pg.274]

To step through the code of a Sub procedure, follow the steps in the following box. There are two ways you can begin the process. [Pg.274]

As you step through the code, the next statement to be executed is [Pg.274]

Activate a worksheet, choose Macro from the Tools menu and Macros... from the submenu. [Pg.275]

Activate the Visual Basic Editor. The VBA code module must be visible. [Pg.275]

Select the macro in the Macro Name list box and press the Step. Into button. This will display the code modulecontaiping the [Pg.275]


A breakpoint allows you to halt execution at a specified line of code, rather than having to step through the code from the beginning. There are several ways to add a breakpoint ... [Pg.275]

When you run the macro, the code will execute until the breakpoint is reached, at which point execution will stop. You can now step through the code one statement at a time or examine the values of selected variables. [Pg.276]

To see the values of the selected variables or expressions, you must be in Step mode. The variables will be listed in the Watches pane (Figure 14-23), which is usually located below the Code window. The current values of the variables will be displayed as you step through the code. [Pg.277]

The paper is organized as follows. In Sec. 1, we introduce the main features of quantum error-correction, and, particularly, we present the already well-developed theory of quantum error-correcting codes. In Sec. 2, we present a multidimensional generalization of the quantum Zeno effect and its application to the protection of the information contained in compound systems. Moreover, we suggest a universal physical implementation of the coding and decoding steps through the non-holonomic control. Finally, in Sec. 3, we focus on the application of our method to a rubidium isotope. [Pg.139]

Figure 4. Coding step through the non-holonomic control technique. The two Hamiltonians Ha and Hb are alternately applied to the system during pulses whose timings are reproduced in Tab. 1. The pulsations of the laser fields involved in the coding step are represented on the spectrum of the rubidium atom. Figure 4. Coding step through the non-holonomic control technique. The two Hamiltonians Ha and Hb are alternately applied to the system during pulses whose timings are reproduced in Tab. 1. The pulsations of the laser fields involved in the coding step are represented on the spectrum of the rubidium atom.
Figure 5. Decoding step through the non-holonomic control technique. We reverse the magnetic field and the detunings of electric fields, as represented on the spectrum of the Rubidium atom, and apply the same control sequence as for coding (same timings) in the reverse way. Figure 5. Decoding step through the non-holonomic control technique. We reverse the magnetic field and the detunings of electric fields, as represented on the spectrum of the Rubidium atom, and apply the same control sequence as for coding (same timings) in the reverse way.
The subroutine MENU displays a list of mnemonics on the screen at predefined locations. In my code, these mnemonics are usually in a vertical stack, and they are all accompanied by a line of explanatory text per mnemonic. Use of the cursor keys causes a highlighted bar to step through the mnemonics. Pressing the RETURN key selects the option equivalent to the currently selected mnemonic. [Pg.190]

As you step through the code, the next statement to be executed is highlighted, as shown in Figure 14-18. Use the Step Into toolbutton Ji or press F8 to step through the procedure. Press F5 to run the macro from the current line. [Pg.274]

The listing shows the equations eoded in essentially this form exeept for the equal zero part on lines 10 through 12. The notation yp[] is used for specifying the first derivative terms in the equations. The solutions are known exponential functions of time with deeaying time eonstants of 1, 0.1 and 0.01 for the three equations respectively. The initial values of the solutions are set on line 18 and 19 to be 1.0 at zero time. The major part of the solution technique is the time loop from line 36 through line 45. For each time step the code performs the following steps ... [Pg.470]


See other pages where Stepping through code is mentioned: [Pg.274]    [Pg.274]    [Pg.274]    [Pg.274]    [Pg.357]    [Pg.122]    [Pg.6]    [Pg.75]    [Pg.311]    [Pg.275]    [Pg.30]    [Pg.32]    [Pg.275]    [Pg.357]    [Pg.75]    [Pg.2450]    [Pg.2154]    [Pg.364]    [Pg.34]    [Pg.45]    [Pg.127]    [Pg.53]    [Pg.87]    [Pg.89]    [Pg.95]    [Pg.97]    [Pg.350]    [Pg.483]    [Pg.489]    [Pg.626]    [Pg.667]    [Pg.482]    [Pg.377]   
See also in sourсe #XX -- [ Pg.274 ]




SEARCH



© 2024 chempedia.info