Page 200 - The Ultimate Palm Robot
P. 200

Color profile: Generic CMYK printer profile
           Composite  Default screen
                                                          Bots /The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 7






                                                  Chapter 7 Essential Robot Programming Strategies   183



                                      Double-click on the Start button. Add the code (shown next) to the code
                                    window that appears. Note that your Sub line will probably use a different ob-
                                    ject ID, depending on when you added the button to the project.


                                   Sub object1004()
                                        'start button
                                        lblStatus.label = "Running..."
                                        Call LoopMethod
                                   End Sub




























                                      Double-click the Stop button and enter this code into the code window for
                                    the Stop button:

                                   Sub object1005()
                                        'stop button
                                        done = 1
                                        lblStatus.label = "Stopped..."
                                   End Sub

















           P:\010Comp\Bots\880-6\ch07.vp
           Monday, May 12, 2003 4:29:27 PM
   195   196   197   198   199   200   201   202   203   204   205