While developing in LC I feel that it is very Verbos like for example:
Code: Select all
set the text of field "DisplayMessage" to the text of field "EnterMessage"
Code: Select all
set the field "DisplayMessage".Text to field "EnterMessage".Text
TIA
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
set the text of field "DisplayMessage" to the text of field "EnterMessage"
Code: Select all
set the field "DisplayMessage".Text to field "EnterMessage".Text
Code: Select all
put fld "DisplayMessage" into fld "EnterMessage"
I am not saying that current syntax should be removed. In fact there should be two way to writing code in LC:Klaus wrote:Hi Yogi,
there have been a LOT of discussion about DOT notation in the past, but this will not happen very soon, if at all, in Livecode!
But you can do this, which is even shorter![]()
Code: Select all
put fld "DisplayMessage" into fld "EnterMessage"
![]()
And use abbreviations wherever possible:
cd = card
btn = button
fld = field
sb = scrollbar
grp = group
grc = graphic
Best
Klaus
If there is one thing I tend to miss from other languages I've used, this would be itmrcoollion wrote:I would rather see the editor evolve in such a way that for example when I start to type in 'put' it suggests a list of possibilities during typing i can select from and after I type in or select 'fld ' (or field ) it suggest a list of possible field-names on that card I can select from and so on.
That would save me a lot of time and prevents many type errors as well as creating a much shorter learning curve for newbies (like me).
How old is the engine driver? 47!bogs wrote:...The time is now 5:25 am. If a train is leaving Chicago at 2 pm...