input issues
|
01-25-2021, 07:36 PM
(This post was last modified: 01-25-2021 08:02 PM by C.Ret.)
Post: #12
|
|||
|
|||
RE: input issues
(01-25-2021 06:25 PM)Amer7 Wrote: Can someone tell me why the program is returning a=0, b=0; when if we input All the lines you entered in your code after LOCAL K,L; are erroneous. The equal sign you use is reserved for equation, to affect value to variables, the correct syntax is to use the affectation sign ':=' or the store sign '▶ ' For example: a:=2; 3▶b; An expression like a=3; is evaluated as an equation and the returned value of this evaluation is lost since there no affectation nor print or return order. That why you a and b variable stay at 0, they are never the subject to any affectation or storing. Here, as an example, is the way I would have compose your application: Code: EXPORT Elipsa1() Since no LOCAL instruction were used for K l P O U, values are store in the corresponding user real variable you can acces with [Vars]/HOME/Real/... |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
input issues - Amer7 - 01-25-2021, 02:07 PM
RE: input issues - Didier Lachieze - 01-25-2021, 02:38 PM
RE: input issues - Amer7 - 01-25-2021, 03:13 PM
RE: input issues - rprosperi - 01-25-2021, 03:47 PM
RE: input issues - Amer7 - 01-25-2021, 03:53 PM
RE: input issues - Didier Lachieze - 01-25-2021, 04:03 PM
RE: input issues - Amer7 - 01-25-2021, 04:38 PM
RE: input issues - Didier Lachieze - 01-25-2021, 05:00 PM
RE: input issues - Amer7 - 01-25-2021, 06:25 PM
RE: input issues - C.Ret - 01-25-2021, 07:13 PM
RE: input issues - Didier Lachieze - 01-25-2021, 07:32 PM
RE: input issues - Amer7 - 01-25-2021, 07:42 PM
RE: input issues - toml_12953 - 01-26-2021, 04:34 PM
RE: input issues - C.Ret - 01-25-2021 07:36 PM
RE: input issues - Amer7 - 01-25-2021, 08:00 PM
RE: input issues - Amer7 - 01-26-2021, 03:01 PM
RE: input issues - Amer7 - 01-27-2021, 11:45 AM
RE: input issues - Didier Lachieze - 01-27-2021, 01:59 PM
|
User(s) browsing this thread: 1 Guest(s)