VB Graph Control: ThisPoint, ThisSet Reset to 1 at Run TimeLast reviewed: June 21, 1995Article ID: Q82155 |
The information in this article applies to:
- Professional Edition of Microsoft Visual Basic for Windows, versions 2.0 and 3.0- Microsoft Professional Toolkit for Microsoft Visual Basic programming system for Windows, version 1.0
SUMMARYThe Graph version 1.2 custom control in the Professional Edition of Microsoft Visual Basic versions 2.0 or 3.0 for Windows, and in the Microsoft Professional Toolkit for Visual Basic version 1.0 for Windows, allows you to set the values of the ThisPoint and ThisSet properties at design time to aid in the development of your graphs. However, when you run the project, the Graph custom control resets the property values of ThisPoint and ThisSet to 1. This behavior is a design feature of the Graph custom control to help avoid logic errors in your code. If your program requires ThisPoint and ThisSet to be a value other than 1 upon execution of the project, you will need to specifically set these property values in the program's code.
MORE INFORMATIONThe example below demonstrates that ThisPoint and ThisSet are reset to 1 at run time.
Example1. With Visual Basic for Windows running and Graph loaded, create a form(Form1).
Control Property Value ------- -------- ----- Command1 Caption Show values Graph1 Top 2000 Graph1 NumSet 2 Graph1 ThisPoint 2 Graph1 ThisSet 2
Sub Command1_Click () Form1.Print "Graph1.ThisPoint = "; Graph1.ThisPoint Form1.Print "Graph1.ThisSet = "; Graph1.ThisSet End Sub When you run the program and click the Command1 button, the program will display the current values of Graph1.ThisPoint and Graph1.ThisSet. These values should have changed from 2 to 1.
|
Additional reference words: 1.00 2.00 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |