Microsoft Knowledge Base Email Alertz

KBAlertz.com: When selecting an item in a list box or combo box, one or more of the following errors may occur: Alias 'DYNAMICFONTUNDERLINE' is not found. Alias DYNAMICFONTSTRIKETHRU is not found. VFP caused an invalid page fault in module Vfp.exe. Syntax error....

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 164252 - Last Review: February 16, 2005 - Revision: 1.1

FIX: Receiving Error When Selecting 254th Item in List Box

This article was previously published under Q164252

On This Page

SYMPTOMS

When selecting an item in a list box or combo box, one or more of the following errors may occur:
Alias 'DYNAMICFONTUNDERLINE' is not found.
Alias DYNAMICFONTSTRIKETHRU is not found.
VFP caused an invalid page fault in module Vfp.exe.
Syntax error.
Variable '' is not found.
Alias '' is not found.
These errors occur when selecting the 253rd item from the list box or combo box and then selecting the 254th item. The RowSource property has to be set to a field in a table or query and RowSourceType can be set to either Alias, Fields, Query, or SQL statement.

When selecting the 253rd item in the list box, it may be necessary to move the focus to another object and then back to the 254th item in the list box to get one of the errors to occur.

In the combo box, just selecting the 253rd item and trying to click to display the combo list again triggers an error. These errors occur on any table as long as the table has 254 or more records.

RESOLUTION

There are two ways to prevent these errors from occurring. One is to create an array and change the RowSourceType property of the List or Combo box to Array and the RowSource property to that array name. The second is to use the Additem method to populate the list box or combo box. Following is a code example that could be added to the Init event of a list box or combo box to populate it. This code assumes that the table is already open.
   GO TOP
   FOR x = 1 TO RECCOUNT()

     THIS.ADDITEM(<field name>) && Insert field from the table into list.
     SKIP

   NEXT
				

STATUS

This problem was corrected in Visual FoxPro 6.0.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a form and add the Orders table from the Visual FoxPro \Samples\Data folder to the DataEnvironment.
  2. Add a list box and command button to the form.
  3. Set the RowSourceType property of the list box RowSourceType to Alias and the RowSource property to the orders table.
  4. In the Click event of the command button, add the following code:
          WAIT WINDOW STR(RECNO())
    					
  5. Run the form and move through the list box until the item 10252 appears.
  6. Click the command button, and then click back to the item 10253 in the list box. Note that one of the errors listed in the SYMPTOMS section occurs.

APPLIES TO
  • Microsoft Visual FoxPro 5.0 Standard Edition
Keywords: 
kbbug kbfix kbvfp600fix KB164252
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please