Microsoft Knowledge Base Email Alertz

KBAlertz.com: Starting Tastrade.app causes the following error message to appear: Variable TITLE is not found. Cancel Suspend Ignore Help If you click Ignore, the error message will appear with NOTES replacing TITLE as the variable not found. This will...

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: 143248 - Last Review: September 30, 2003 - Revision: 3.1

FIX: Error: "Variable 'TITLE' is not found" as Start Tastrade

This article was previously published under Q143248

On This Page

SYMPTOMS

Starting Tastrade.app causes the following error message to appear:
Variable "TITLE" is not found.
<Cancel> <Suspend> <Ignore> <Help>
If you click Ignore, the error message will appear with NOTES replacing TITLE as the variable not found. This will occur several more times, each with a different variable such as PHOTO_FILE and PASSWORD.

NOTE: The error is not displayed immediately upon starting Tastrade.app if the introductory screen appears. To cause the error message to appear, click the Continue button on the Introductory form.

CAUSE

COMPATIBLE has been set to ON or DB4.

WORKAROUND

The short-term solution is to issue the following command in the Command window before running Tastrade.app:
   SET COMPATIBLE OFF
				
The permanent solution is to modify the Environment class in the Tsgen class library as described below.

Step-by-Step Workaround

  1. Open the Tastrade.pjx project file located in the VFP\Samples\Mainsamp directory.
  2. Click the Classes tab. Drill down in the Tsgen class library, and select the Environment library. Click the Modify button to edit the library.
  3. With the Environment class open in design mode, click New Property on the Class menu. In the Name box, enter the following variable name:
    cOldCompatible
  4. Ensure that the properties sheet of the class is open by choosing Properties from the View menu. Click the Methods tab on the properties sheet.
  5. Double-click the Init event, and add the following line of code at the end of the current code:
       this.cOldCompatible = SET('COMPATIBLE')
    						
    Close and save the Init event.
  6. From the Methods tab in the Property sheet, double-click the Reset method, and add the code at the end of the current code:
       lutemp = this.cOldCompatible
       SET COMPATIBLE &lutemp
    						
    Close and save the method.
  7. Double-click the Set method in the Methods tab of the Property sheet and enter the following line of code at the end of the current code:
       SET COMPATIBLE OFF
    						
    Close and save the method.
  8. Close and save the Environment class. In the Project Manager, click the Build option button, and then click Build Application under options, and choose OK. The Save As dialog box appears. Either take the default name for the application, or enter a new name to leave the original application intact if necessary.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.

MORE INFORMATION

COMPATIBLE can be set in following three ways:

  • By using the following command in the Config.fpw file:
    COMPATIBLE=ON
  • By using the following command in program code or in the Command window:
       SET COMPATIBLE ON
    						
  • By choosing Options from the Tools menu; then clicking the General tab, and selecting the dBASE Compatibility check box.

Steps to Reproduce Behavior

  1. In Command window, type SET COMPATIBLE ON, or select the dBASE Compatibility check box in the General tab the Options choice on the Tools menu.
  2. Run \Vfp\Samples\Mainsamp\Tastrade.app
  3. Click the Continue button on the Introductory form if you see it.
  4. The following program error is displayed:
    "Variable 'TITLE' is not found."
    <Cancel> <Suspend> <Ignore> <Help>
  5. Click Ignore. Several more similar error messages will appear, each with a different variable not found.
  6. Click Ignore until the Login form appears. Each field that was displayed in the error message is blank.

APPLIES TO
  • Microsoft Visual FoxPro 3.0 Standard Edition
  • Microsoft Visual FoxPro 3.0b Standard Edition
Keywords: 
kbbug kbfix kbvfp500fix KB143248
       

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