Skip to content

's Delphi4 Object Pascal language guide PDF

Read or Download Delphi4 Object Pascal language guide PDF

Best programming: programming languages books

Download e-book for iPad: Objektorientiertes Programmieren: Mit Beispielen und Übungen by Ute Claussen

"OOP" ist "in". Die modernste paintings, Programme zu schreiben, wird in diesem didaktisch vorz}glich aufbereiteten Lehrbuch vermittelt. Das Schwergewicht der Darstellung liegt auf der methodischen Darstellung der Gurndlagen und Konzepte pbjektorientierten Programmierens: Objekte, Klassen, Vererbung,Instanzen, Botschaften und abstrakte Datentypen werden verdeutlicht.

Extra info for Delphi4 Object Pascal language guide

Example text

4294967295 unsigned 32-bit In general, arithmetic operations on integers return a value of type Integer—which, in its current implementation, is equivalent to the 32-bit Longint. Operations return a value of type Int64 only when performed on an Int64 operand. Hence the following code produces incorrect results. var I: J: ƒ I := J := Integer; Int64; High(Integer); I + 1; To get an Int64 return value in this situation, cast I as Int64: ƒ J := Int64(I) + 1; For more information, see “Arithmetic operators” on page 4-6.

If expression is True, then statement1 is executed; otherwise statement2 is executed. For example, if J = 0 then Exit else Result := I/J; The then and else clauses contain one statement each, but it can be a structured statement. For example, if J <> 0 then begin Result := I/J; Count := Count + 1; end else if Count = Last then Done := True else Exit; Notice that there is never a semicolon between the then clause and the word else. You can place a semicolon after an entire if statement to separate it from the next statement in its block, but the then and else clauses require nothing more than a space or carriage return between them.

The most important of them are summarized below. Function Parameter Return value Remarks Ord ordinal expression ordinality of expression’s value Does not take Int64 arguments. Pred ordinal expression predecessor of expression’s value Do not use on properties that have a write procedure. Succ ordinal expression successor of expression’s value Do not use on properties that have a write procedure. High ordinal type identifier or variable of ordinal type highest value in type Also operates on short-string types and arrays.

Download PDF sample

Delphi4 Object Pascal language guide


by William
4.0

Rated 4.09 of 5 – based on 13 votes