OWBasic for Pocketviewer

Home INTRO Group SHAREDFILE Alphabetical Index

Access to the Shared File

LOADSHARED recordname$[,application$]
SAVESHARED recordname$[,application$]

The procedure SAVESHARED expects a filled binary filebuffer and writes the content to a record of the shared file. LOADSHARED loads the record with the given signature and stores it to the filebuffer.

Example:


! MyApp
  LOADSHARED "settings": ! Load settings
  FBBINIT
  prompt$=FBBSTRING$():	       ! Read first setting from filebuffer
..
  FBBINIT:		       ! Save changed settings
  FBBPUTSTRING prompt$
  SAVESHARED "settings": ! Save settings
You must not use the whole size of a binary file buffer for your data (3072 Byte), because there has to be free space for the signature and a delimiter too.

Home INTRO Group SHAREDFILE Alphabetical Index