<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">El 26/08/2021 a las 13:05, Michael Van
      Canneyt via fpc-pascal escribió:<br>
    </div>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.22.394.2108261305250.423801@home">
      <br>
      <br>
      On Thu, 26 Aug 2021, Santi via fpc-pascal wrote:
      <br>
      <br>
      <blockquote type="cite">El 26/08/2021 a las 11:58, Michael Van
        Canneyt via fpc-pascal escribió:
        <br>
        <blockquote type="cite">
          <br>
          <br>
          On Thu, 26 Aug 2021, Santiago A. via fpc-pascal wrote:
          <br>
          <br>
          <blockquote type="cite">Hello:
            <br>
            <br>
            Freepascal 3.2.0. Windows 7-32bits
            <br>
            <br>
            TMyObject=class   private     fDset:TDataset;    function
            GetBookmark:TBookmarkStr; ... end;
            <br>
            <br>
            function TMyObject.GetBookmark:TBookmarkStr; Begin
            result:=FDset.Bookmark; end;
            <br>
            <br>
            I get this compiling error:
            <br>
            Incompatible types: got "TBytes" expected "AnsiString"
            <br>
            <br>
            Nevertheless, /TbookmarkStr/ documentation example assigns
            bookmark property to a TBookmarkStr variable
            <br>
<a class="moz-txt-link-freetext" href="https://www.freepascal.org/docs-html/fcl/db/tdataset.bookmark.html">https://www.freepascal.org/docs-html/fcl/db/tdataset.bookmark.html</a>
            <br>
          </blockquote>
          <br>
          The type used for bookmarks changed over time.
          <br>
          <br>
          You really must use TBookmark.
          <br>
          <br>
          I have corrected the documentation, it seems the 2 types were
          switched when
          <br>
          I corrected the documentation when the type actually changed.
          Sorry about that :/
          <br>
        </blockquote>
        <br>
        By the way, BytesOf documentation is also misleading
        <br>
      </blockquote>
      <br>
      In what sense ?
      <br>
    </blockquote>
    <br>
    <br>
    <a class="moz-txt-link-freetext"
      href="https://www.freepascal.org/docs-html/rtl/sysutils/bytesof.html">https://www.freepascal.org/docs-html/rtl/sysutils/bytesof.html</a><br>
    The abstract is  "Return the bytes in a string". Probably you can
    blame my English, but I think it is ambiguous whether  it must be
    read as <br>
    <br>
    Return (the bytes (in a string)) <br>
    or<br>
    return (the bytes) -> (in a string)<br>
    <br>
    before reading the function declaration, I thought it was the second
    case.<br>
    <br>
    better something like "Return the bytes OF a string in an array of
    bytes TBytes"  <br>
    <br>
    <br>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.22.394.2108261305250.423801@home">
      <br>
      Michael.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-pascal maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Saludos
Santi</pre>
  </body>
</html>