nHandleOpen writable handle.
AdvPL GuideFWrite(nHandle,cBuffer,[nBytes]) -> nWrittenWrites bytes through an open file handle.
Takes a writable handle from FCreate/FOpen. Return value is the number actually written; zero or partial writes are not complete success. This helper receives an already-open handle without creating, truncating or closing a caller-owned file. (Sources: refs. 1–1.)
FWrite(nHandle,cBuffer,[nBytes]) -> nWrittennHandleOpen writable handle.
cBufferBytes to write.
nBytesNumber of bytes.
Number of bytes written.
#Include "Protheus.ch"
User Function Ed449()
// Helper receives a caller-owned test handle.
Local bWrite := {|nHandle,cBuffer| FWrite(nHandle,cBuffer,Len(cBuffer))}
ConOut(ValType(bWrite))
Return NilPrepares block B; compare its result with Len(cBuffer) on execution. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.