<!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.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=sans-serif size=2>>> if you finish the array with a null
value you can know when is finish and so the length</FONT> <BR><FONT
face=sans-serif size=2>>> of it. but as jonas said it'll be better to pass
an argument to the function with the length</FONT> <BR><FONT face=sans-serif
size=2>>> of the buffer:</FONT> <BR><FONT face=sans-serif size=2>>>
Procedure Win32Write (Col,Row : byte; "length :dword;" var SourceData);</FONT>
<BR><FONT face=sans-serif size=2>>Getting the length before calling the
procedure was a PITA for the most part -- and sizeof still >didn't return the
correct values even, when used on the calling side of the code -- but the logic
>behind these two suggestions made a lot of sense. After some recoding I was
able to get things >to function a bit better. Thanks.</FONT> <BR><BR><FONT
face=Arial size=2>Maybe if you post the type declaration of the SourceData you
use, we can be able to find a solution.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ciao, Ivan</FONT></DIV></BODY></HTML>