New to programming...help !
|
05-19-2015, 06:36 AM
(This post was last modified: 05-19-2015 06:41 AM by Didier Lachieze.)
Post: #6
|
|||
|
|||
RE: New to programming...help !
(05-19-2015 06:18 AM)Digitaldreams Wrote: What is the function of ':' after a variable ?? With "TIC=TICKS()" you get the result of the test "TIC equal TICKS()" which in your case in false (zero). With "TIC:=TICKS()" you assign the value of TICKS() to the the variable TIC, it's the same as with the Sto command "TICKS()â–¶TIC" where you store the value to TICKS() into the TIC variable. So in your original program you were comparing TIC to TICKS(), then TIC to TIC/1000 but never assigning a value to TIC, so the default value (zero) assigned to TIC at its creation by the "LOCAL TIC;" statement was printed. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
New to programming...help ! - Digitaldreams - 05-18-2015, 10:39 PM
RE: New to programming...help ! - Eddie W. Shore - 05-19-2015, 02:46 AM
RE: New to programming...help ! - Digitaldreams - 05-19-2015, 05:58 AM
RE: New to programming...help ! - Didier Lachieze - 05-19-2015, 03:22 AM
RE: New to programming...help ! - Digitaldreams - 05-19-2015, 06:18 AM
RE: New to programming...help ! - Didier Lachieze - 05-19-2015 06:36 AM
RE: New to programming...help ! - Digitaldreams - 05-19-2015, 06:55 AM
|
User(s) browsing this thread: 1 Guest(s)