<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I need to read and write that flag.&nbsp; No other 
flags are using that particular entire byte so I can access this part of the 
flag as a byte and check for the value 2, and ignore the other 3 bytes.&nbsp; I 
think I'm set now, thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Ross.</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=bswrigley@xtra.co.nz href="mailto:bswrigley@xtra.co.nz">Brian 
  Wrigley</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz 
  href="mailto:delphi@ns3.123.co.nz">NZ Borland Developers Group - Delphi 
  List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, July 14, 2006 2:33 PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [DUG] C code help</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>No, that function won't change the value in the 
  flag. It just tests it and returns True if that field of a global variable 
  (m_nFieldFlags) contains the value "Text_UTF8" and returns&nbsp;False if that 
  field contains any of the other 3 values.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>What is it that your own program needs to do with 
  this field? Just determine the value? Or do you need to set or change it and 
  pass the resulting entire flags word (which possibly includes other fields 
  which should not be changed) back to an external process or 
  device?</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
  <DIV><FONT face=Arial size=2>Brian</FONT></DIV></BLOCKQUOTE></BODY></HTML>