PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Impossible positioning
  • Positioning and filtered access
  • Reading and refreshing the Palm structure
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 record identified by its position in the specified access and reads it.
Reminder: An access is created by PalmLoad. An access corresponds to a "view" of data found in one of the Palm Pilot databases. All the database records are loaded in memory and they can be handled by the PALM functions.
You have the ability to handle the records corresponding to a specific access. You have the ability to filter these records, read these records, ...
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

Index is int = 1
// Browses all the records and fills a table
FOR Index = 1 TO PalmNbRec()
TableAdd(TABLE_MyTable, PalmPosition(Index))
END
Syntax
<Result> = PalmPosition([<Access Name>,] <Subscript>)
<Result>: Character string
Value of the specified record. The specified record becomes the current record.
If the specified record does not exist (subscript out of bounds for example), <Result> corresponds to the value of current record. The current record is not modified.
<Access Name>: Optional character string (with quotes)
Name of access that was defined by PalmLoad. If this parameter is not specified, the last access handled by a PALM function is used.
<Subscript>: Integer
Subscript of record to read and select. The subscript of first record is set to 1.
Remarks

Impossible positioning

If the specified subscript does not correspond to a valid subscript for the specified access:
  • the position is not changed: the selected record is not changed.
  • PalmPosition returns the value of current record.
  • PalmOut returns True.

Positioning and filtered access

If the records of the specified access are filtered, the position of a record corresponds to its position among the filtered records.
For example, the third record of non-filtered access could be different from the third record of the same access filtered by category.

Reading and refreshing the Palm structure

When reading a record, the variables of the Palm structure are automatically refreshed.
The variables of the Palm structure differ according to the Palm Pilot database (defined by PalmLoad).
For more details, see:
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