Hi,

tmpstr = StrNCopy(tmpstr,lap->jobdata.fields[icustomer],24);
FrmCopyLabel(frm,detailcustlabel,tmpstr);
MemPtrFree(tmpstr);


>Does StrNCopy terminate the string with a NULL? All the data >looks fine, 
>tmpstr
>contains a truncated string as expected.
I think that StrNCopy() works the same way as strncpy() in C. So, it may not 
add a null char for you. Can you try to add a null char

tmpstr = StrNCopy(tmpstr,lap->jobdata.fields[icustomer],24);
tmpstr[24] = nullChr;
then put it in the label. If you change the text in the label many times in one 
form, you may want to reallocate the text inside the label, too.

tnn

-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com




-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to