Usina BRAdvPL Guide
Sign in
← All topics
PRACTICAL GUIDEUnder review

DoSync / SyncDate

Distinguishes starting synchronization from its historical date lookup.

DoSync / SyncDateAdvPL
01 · OVERVIEW

Overview

In the eAdvpl guide, DoSync() starts the communication client and SyncDate() reports the last synchronization date as yyyymmdd. The source establishes neither protocol, destination, authentication nor failure handling; it is not current Protheus synchronization documentation. A date format alone does not establish an AdvPL date type. The callbacks only record historical invocations without synchronizing or querying a real environment. (Guia de referência eAdvpl, n.d., section 8, p. 33, ref. 1)

03 · PRACTICAL EXAMPLE

Commented example

// Prepare only; do not evaluate legacy calls.
bSynchronize := {|| DoSync()}
bSyncDate := {|| SyncDate()}
Expected result

Blocks prepared without external communication. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Do not equate SyncDate with Date or use DoSync as generic integration.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Guia de referência eAdvpl. Seção 8, p. 33. Autoria não confirmada. Accessed on 2026-10-26.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha