![background image](http://html.mh-extra.com/html/conrad/c-control-pro-mega-series/c-control-pro-mega-series_manual_2654183132.webp)
123
C-Control Pro Mega Series
© 2008 Conrad Electronic
Do While str(i)
i=i+
1
' Repeat character as long as unequal zero
End While
Return i
End Sub
Sub main()
Dim Len As Integer
Dim Text(
15
) As Char
Text=
"hello world"
Len=StringLength(Text)
End Sub
In main the reference of text is presented as parameters to the function StringLength. If in a function
a normal parameter is changed then the change is not visible outside this function. With references
this is different. Through parameter str can in StringLength the contents of text be changed since str
is only the reference (pointer) to the array variable text.
Presently arrays can only be presented "by Reference"!
5.3.8
Tables
5.3.8.1
Operator Precedence
Rang
Operator
10
( )
9
-
(negatives Vorzeichen)
8
* /
7
Mod
6
+ -
5
<< >>
4
= <>
< <= > >=
3
Not
2
And
1
Or Xor
5.3.8.2
Operators
Arithmetische Operatoren
+
Addition
-
Subtraktion
*
Multiplikation
Summary of Contents for C-Control Pro Mega Series
Page 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Page 9: ...VIII Inhalt 2008 Conrad Electronic ...
Page 10: ...Part 1 ...
Page 17: ...Part 2 ...
Page 23: ...Part 3 ...
Page 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Page 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Page 58: ...Part 4 ...
Page 91: ...82 IDE 2008 Conrad Electronic ...
Page 92: ...Part 5 ...
Page 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Page 136: ...Part 6 ...
Page 231: ...Part 7 ...
Page 240: ......