PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Reading and refreshing the Palm structure
  • The previous record does not exist
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 16, this feature is no longer available.
Positions on the previous record of specified access and reads it. In most cases, this function is used when browsing the records of a Palm Pilot database.
Example
MyMemo is string       // String containing the message found in the notepad
// Opens an access named "JEFFACCESS" on the PALM database
// "Notepad" of JEFF user
IF PalmLoad("JEFFACCESS","JEFF") = False THEN
Error("Error while accessing the PALM database" + ...
ErrorInfo())
EndProgram()
END
MyMemo = PalmReadLast("JEFFACCESS")
WHILE PalmOut("JEFFACCESS")=False
 // Process
 MyMemo = PalmReadPrevious()
END
// Close the access
PalmClose("JEFFACCESS")
Syntax
<Result> = PalmReadPrevious([<Access Name>])
<Result>: Character string
Value of the record found before the current record for the specified access. The previous record becomes the current record. The Palm structure is refreshed with the content of record read.
If the previous record does not exist, <Result> corresponds to the value of the current record. The current record is not modified.
<Access Name>: Optional character string (with quotes)
Name of access previously defined by PalmLoad. If this parameter is not specified, the last access handled by a PALM function is used.
Remarks

Reading and refreshing the Palm structure

When reading a record, the variables of the Palm structure are automatically refreshed.
The variables of Palm structure differ according to the Palm Pilot database (defined by PalmLoad).
For more details, see:

The previous record does not exist

If the previous record does not exist:
  • the position is not changed: the selected record is not changed.
  • PalmReadPrevious returns the value of current record.
  • PalmOut returns True.
Components
WINDEVReports and Queries wd230plm.dll
Linux wd230plm.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment