<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY>
<DIV><FONT face="Courier New" size=2>Hi,</FONT></DIV>
<DIV><FONT face="Courier New" size=2>for a fast answer without compiling your
example myself</FONT></DIV>
<DIV><FONT face="Courier New" size=2>I would say that you didn't have
"Range Checking" ON.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Maybe that way your example might compile
but not run.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>I don't know.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Anyway. You use "Type"
casting to teach the compiler</FONT></DIV>
<DIV><FONT face="Courier New" size=2>about (new) memory structures (you want to
use) and</FONT></DIV>
<DIV><FONT face="Courier New" size=2>how to use them.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT> </DIV>
<DIV><FONT color=#000000 size=2>example:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>type</FONT></DIV>
<DIV><FONT face="Courier New" size=2> BtrvDate = LongInt;</FONT></DIV>
<DIV><FONT face="Courier New" size=2> BtrvTime = LongInt;<BR></FONT><FONT
face="Courier New" size=2> String4 = String[4];<BR> FixRec = packed
record<BR> null :
byte; {1}<BR>
buch :
char; {2}<BR>
EingDt : BtrvDate; {3,4,5,6}<BR>
Jnr :
word;
{7,8 the Nr SampleNr. according to book}<BR>
grp :
word;
{9,10}<BR> code :
word;
{11,12 Anzahl / ParameterNr.}<BR> Ab_date:
BtrvDate; {13,14,15,16
Abschluß_datum}<BR> An_date:
BtrvDate; {17,18,19,20}<BR> An_time:
BtrvTime; {21,22,23,24}<BR> Typtail:
shortint; {25 the kind of
tail}<BR> Up_date: BtrvDate;
{26,27,28,29 update-date}<BR> Up_time:
BtrvTime; {30,31,32,33
update-time}<BR> uOwner :
dword; {34,35,36,37
4 byte}<BR> gOwner :
dword; {38,39,40,41
4 byte}<BR> Stat :
string4; {42,43,44,45,46}<BR>
ApplId : word;
{47,48}<BR> end;</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT color=#000000 size=2>Best write what you are trying to do and then
maybe try again!</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT size=2>my regards,</FONT></DIV>
<DIV><FONT size=2>Stefan</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV><FONT face="Courier New"
size=2></FONT>
<DIV><FONT face=Arial size=2><FONT face="Courier New"
size=2>-----Ursprüngliche Nachricht-----<BR>Von: Luis Del Aguila <<A
href="mailto:aguila3000@terra.com.pe">aguila3000@terra.com.pe</A>><BR>An: <A
href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</A>
<<A
href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</A>><BR>Datum:
Sonntag, 30. Juni 2002 22:31<BR>Betreff: [fpc-pascal]I don't understand value
typecast<BR><BR></FONT></DIV><FONT face="Courier New"><FONT
size=2></FONT></FONT></FONT><FONT size=2><FONT face="Courier New">>In the
manual explain that the value typecast doesn't work, when the type<BR>>size
of the expression and the size of the type cast not must be the
same.<BR>>(page 58. ref.pdf)<BR>>But this program
compile.<BR>><BR>>Var a:integer;<BR>>
b:char;<BR>>
c:boolean;<BR>>
d:word;<BR>>Begin<BR>> a:=integer('A');<BR>>
b:=Char(4875);<BR>>
c:=boolean(100);<BR>>End.<BR>><BR>>How work the value
typecast?<BR>>thanks.<BR>><BR>><BR>><BR>><BR>>_______________________________________________<BR>>fpc-pascal
maillist - <A
href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</A><BR>><A
href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</A><BR>></FONT></FONT></BODY></HTML>