TEXTWIDTH "Type Mismatch" Interpreted but Not When Compiled (45479)
This article was previously published under Q45479
SUMMARY
The first reference to a variable cannot be in a toolbox-library
routine. All variables used with library (MBLC) routines must be
explicitly initialized (assigned to a certain value) before you use
them with a library statement. If this is not done, incorrect program
behavior may occur. QuickBASIC DOES NOT explicitly warn you about
uninitialized variables passed to toolbox-library routines; thus, you
must remember to initialize them.
An example below that uses the TextWidth routine shows the
inconsistent symptoms if you fail to initialize passed parameters.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB45479 |
|