|
|
| View Thread |
|
| Author |
the "GET" principle in computer programming |
vince
Member
Posts: 100
Location:
Joined: 30.01.07 |
| Posted on 09-03-2010 01:26 |
|
|
Hello Forum,
This message is to help people gain a better
understanding of computer programming.
The message is to explain the "GET" principle in Limnor and in
computer programming.
GET PROPERTY value......is just the opposite of SET PROPERTY.
-----------------------------------------------------------------------------
As most people know, in Limnor you often SET PROPERTIES of things.
You can also "GET" the condition of properties as a user is using your software program.
Basically, in computer programming, "GET" is the oppossite of "SET".
----------------------------------------------------------------------------
example here.
We have made a computer program and somebody is using it. We want our porgram to "GET" the changes the user is making in the our program. Depending upon what values we discover, we want out program to do something useful.
So we want to "GET" values at runtime
We know that the person is making a window HIEGHT larger. (Page height Property)
Here is how we discover what the user has done.
1) We create a LOGIC EXPRESSION that is just "x". (Logic performer)
2) We create an action to SET the property called "parameter X" to the value of the property called PAGE HEIGHT.
3) IF the user has made the page HEIGHT higher than 700 we want to move it back down to 600 in height. IF it never went above 700 then we don't need to do anything at all.
4) So create an action called SET PAGE HEIGHT to 600.
5) To "GET" what the user has done....we create a nested IF THEN statement (this means IF THEN inside another IF THEN)
6) we make the event to trigger our NEST be the PAGE RESIZE event
------------------------------------------------------------------------------
so i summary, we create TWO statments (2 action lists) that are IF THEN lists.
In the first IF THEN statement we do not have any condition for the if test. We simply put our first ACTION here from 2) above.
Inside the first IF THEN satement...we then place our second IF THEN action list....(second action list)......
In the second action list is we have the condition IF page hieght is greater than 700....then the action in 4) above
All of the above is triggered by the program user with the EVENT of
re-sizing the page (window)
-----------------------------------------------------------------------------
The example above will show you how to do "GET" in programming.
The theory above can be applied to any property of any performer in Limnor. The theory also applies to the Limnor Studio tool.
hope this helps people out
thankyou,
Vince. |
|
|
|
|
| Login |
Not a member yet? Click here to register.
Forgotten your password? Request a new one here.
|
|