Difference between revisions of "MC-Basic:SIZE"

From SoftMC-Wiki
Jump to: navigation, search
m (1 revision)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:SIZE}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 10: Line 11:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This function returns the number of bytes taken by the input string.In ASCII-8 strings SIZE()’svalueis equal to LEN()’s value, whereas in UTF-8 string SIZE()’s value might be remarkably bigger than LEN()’s value.
+
This function returns the number of bytes taken up by the input string. In ASCII-8 strings SIZE()’s value is equal to LEN()’s value, whereas in UTF-8 string SIZE()’s value might be remarkably bigger than LEN()’s value.
  
 
|TYPE=
 
|TYPE=
 
''<string>'': String<br>
 
''<string>'': String<br>
''<return value>'': Long
+
<''return value''>: Long
  
 
|RANGE=
 
|RANGE=
 
''<string>'': string
 
''<string>'': string
  
''<return value>'': 0 to MaxLong
+
<''return value''>: 0 to MaxLong
  
 
|UNITS=
 
|UNITS=
Line 31: Line 32:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only
+
Read only
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 43: Line 44:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:LEN|LEN]]
+
* [[MC-Basic:LEN|LEN]]
 
 
  
 +
[[Category:MC-Basic:String Manipulation|SIZE]]
 
}}
 
}}

Latest revision as of 06:04, 28 April 2017

Language: English  • 中文(简体)‎

This function returns the number of bytes taken up by the input string. In ASCII-8 strings SIZE()’s value is equal to LEN()’s value, whereas in UTF-8 string SIZE()’s value might be remarkably bigger than LEN()’s value.

Syntax

Size(<string>)

Availability

Avilable since version 4.5.10

Type

<string>: String
<return value>: Long

Range

<string>: string

<return value>: 0 to MaxLong

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

?SIZE (CHR$(0xC4))           ‘ The letter Ä

1.000000000000000e+00

?SIZE (UTF$(0xC4))

2.000000000000000e+00

See Also