SA_GetFilePosit
SA_GetFilePosit returns the current position in the file.
int SA_GetFilePosit ( SA_FH TxtFH, u32 posMode );
or
int SA_GetFilePosit32 ( SA_FH TxtFH, u32 posMode );
Note the following:
Valid {posmode} values are as follows:
|
Value |
Returns the ... |
|
0 |
current byte position in the file. |
|
1 |
beginning byte position of the current record. |
|
2 |
current record number if the file is opend in SA_Fixed mode. Otherwise, same as mode 1. |
Function return codes are as follows:
|
Value |
Meaning |
|
+nn |
Success - position returned. |
|
-nn |
Error as described in Sunaccess Errors |
Use SA_GetFilePosit32 for 32 bit applications such as Visual Basic 6.0.
![]() |