amount of characters question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
amount of characters question
Hi Guys
How do I get the amount of characters in a field (including spaces)
Thanks in advance
Edd
How do I get the amount of characters in a field (including spaces)
Thanks in advance
Edd
Re: amount of characters question
put length(field "Name") into tL
[and please read the entry to length in the dictionary for more info]
[and please read the entry to length in the dictionary for more info]
shiftLock happens
Re: amount of characters question
Thank you -hh
I missed it, I was looking under properties of a field
the dictionary is not that easy to use
Edd
I missed it, I was looking under properties of a field
the dictionary is not that easy to use
Edd
Re: amount of characters question
Edd,
you are right. What I meant with "read that in the dict" was to see the equivalent:
the number of chars in field "Name"
and all the synonyms (the length of, len(), the num of chars in etc.).
In LC Script any "amount of" question has mostly a "number of" answer
you are right. What I meant with "read that in the dict" was to see the equivalent:
the number of chars in field "Name"
and all the synonyms (the length of, len(), the num of chars in etc.).
In LC Script any "amount of" question has mostly a "number of" answer

shiftLock happens
Re: amount of characters question
Thanks man 

Re: amount of characters question
hi.
Know that the "number" of things, like Hermann mentioned, is one of the fundamental gadgets in LC. You can ask for the number of words, buttons, cards, almost any "noun" in the language. The context changes, of course, if you are trying to find out the number of buttons on a card, as opposed to the number of words, say, in a variable or field, or characters, as you did.
The point is that if you wanted to know the number of characters in a field, that is not a property of that field. It is a function. The distinction is sometimes hard to distinguish.
Just don't try to ask for the number of numbers in "12345".
Craig
Know that the "number" of things, like Hermann mentioned, is one of the fundamental gadgets in LC. You can ask for the number of words, buttons, cards, almost any "noun" in the language. The context changes, of course, if you are trying to find out the number of buttons on a card, as opposed to the number of words, say, in a variable or field, or characters, as you did.
The point is that if you wanted to know the number of characters in a field, that is not a property of that field. It is a function. The distinction is sometimes hard to distinguish.
Just don't try to ask for the number of numbers in "12345".

Craig