Post Reply 
An HP71 does not like F as a variable
12-11-2023, 03:53 PM (This post was last modified: 12-11-2023 03:54 PM by Valentin Albillo.)
Post: #3
RE: An HP71 does not like F as a variable
(12-11-2023 03:32 AM)waspentalive Wrote:  1030 F=2
run
ERR L1030:Data Type

>F=0
ERR:Data Type

Replace F with J throughout my program - now it works?? Why is there a problem with a variable named "F"

Variable F already existed as a different type, say a matrix, so trying to use it as an scalar is doomed to fail. Simply execute DESTROY ALL either from the command prompt or as the very first executable statement in a program and afterwards you may use F to your heart's content.

The takeaway: always include DESTROY ALL as the first executable statement in your programs, like this:

10 DESTROY ALL

See if that helps.

V.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: An HP71 does not like F as a variable - Valentin Albillo - 12-11-2023 03:53 PM



User(s) browsing this thread: 2 Guest(s)