Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Don Higgins
  Where is Don Higgins?
 Peoria
 Illinois - United States
 Don Higgins
 To: Barbara Peisch
  Where is Barbara Peisch?
 Oceanside
 California - United States
 Barbara Peisch
 Tags
Subject: RE: Source Not Available
Thread ID: 155175 Message ID: 155186 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Thursday, December 27, 2007 2:44:09 AM         
   


>
> I'm guessing that you have a #Define for Speed somewhere in this class. I noticed that you're not using standard naming conventions for your variables. The naming convention is meant to avoid this kind of a problem when you might be using a variable name somewhere else. You're also not declaring FeetPerSecond at all. Try changing the code to this instead:
>
>
> *******************************
> * Method Name: CalcFeetPerSecond
> * Uses: Calculates Feet Per Second
> * Paremeter is the speed of the vehicle
> * Returns: Ft Per Second Numeric
> *******************************
> LPARAMETERS tnSpeed
> Local lnMilesPerMinute, lnMilesPerSecond, lnFeetPerSecond
> 
> lnMilesPerMinute = tnSpeed / 60
> lnMilesPerSecond = lnMilesPerMinute / 60
> lnFeetPerSecond  = lnMilesPerSecond * 5280
> 
> Return lnFeetPerSecond
> 

>
> -BP
> www.peisch.com


There is no variable named Speed, and no Define statement with speed in the project or any PRG.

I deleted the form that was created by the class and then recreated it. It now works with no errors but I still cannot see any code.

Thanks for pointing out the variable that was not declared. This is 10 year old code and wasn't a very good programmer 10 years ago ( or 2 years ago probably either! ).



Don Higgins






ENTIRE THREAD

Source Not Available Posted by Don Higgins @ 12/26/2007 8:00:23 PM
RE: Source Not Available Posted by Tamar Granor @ 12/26/2007 8:13:56 PM
RE: Source Not Available Posted by Don Higgins @ 12/26/2007 8:23:08 PM
RE: Source Not Available Posted by Barbara Peisch @ 12/26/2007 10:42:26 PM
RE: Source Not Available Posted by Don Higgins @ 12/27/2007 1:12:39 AM
RE: Source Not Available Posted by Don Higgins @ 12/27/2007 1:24:35 AM
RE: Source Not Available Posted by Barbara Peisch @ 12/27/2007 1:59:01 AM
RE: Source Not Available Posted by Don Higgins @ 12/27/2007 2:44:09 AM
RE: Source Not Available Posted by Don Higgins @ 12/27/2007 3:25:37 AM