Forum > Networking and Web Programming

[SOLVED] SOCKETS fpsend fails, loses 1 character.

<< < (2/2)

arturogr:
Thanks to Warfley, MarkMLl and Bytebites users, the solution was to change from 1 to 0, the FLAG used at the fpsend function from the client program:

original FLAG in fpsend function:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---...Result := fpsend(SockDesc, @Buffer, SizeOf(Buffer), 1);...
correct FLAG in fpsend function:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---...Result := fpsend(SockDesc, @Buffer, SizeOf(Buffer), 0);... 
Thanks to MarkMLl and Remy Lebeau users, I used the [ code ] tags to improve my post in this forum.

Now, I just do not know how to mark this topic as [SOLVED].

dseligo:

--- Quote from: arturogr on December 02, 2023, 10:26:37 am ---Now, I just do not know how to mark this topic as [SOLVED].

--- End quote ---

Modify your first post and change Subject so it has [SOLVED] in front of it.

Navigation

[0] Message Index

[*] Previous page

Go to full version