Difference between revisions of "API File.SetPos"

From Flowcode Help
Jump to navigationJump to search
(XML import API auto-gen)
(XML import)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<sidebar>API contents</sidebar>
+
<sidebar>API Contents</sidebar>
 
Sets the position of the next read or write in the file
 
Sets the position of the next read or write in the file
  
 +
<div style="width:25%; float:right" class="toc">
 +
====Class hierarchy====
 +
[[API File|File]]
 +
:[[API File|SetPos]]
 +
</div>
 +
__TOC__
  
===Parameters===
+
==Parameters==
''[[Variable types|HANDLE]] FileHandle''
+
[[Variable Types|HANDLE]] ''FileHandle''
 
:The handle of an open file
 
:The handle of an open file
  
''[[Variable types|ULONG]] Address''
+
[[Variable Types|ULONG]] ''Address''
 
:The position in the file, relative to the From position
 
:The position in the file, relative to the From position
  
''[[Variable types|BYTE]] From''
+
[[Variable Types|BYTE]] ''From''
 
:A location in the file to offset Address from
 
:A location in the file to offset Address from
''Typical values for this parameter:''
+
:''Typical values for this parameter:''
{| class="wikitable" |+width="20%"|Type|width="30%"|Name |width="40%"|Value|-LONG|Seek_Begin|0
+
::{| class="wikitable" width="65%"
|-LONG|Seek_Curr|1
+
|-
|-LONG|Seek_End|2
+
! width="30%" |Name
 +
! width="55%" |Description
 +
|-
 +
|Seek_Begin
 +
|Position offset is an absolute value
 +
|-
 +
|Seek_Curr
 +
|Position offset is relative to the current read/write position
 +
|-
 +
|Seek_End
 +
|Position offset is relative to the end of the file
 
|}
 
|}
  
===Return value===
+
 
 +
==Return value==
 
''This call does not return a value''
 
''This call does not return a value''
  
===Detailed description===
 
''No additional information''
 
  
===Examples===
+
==Detailed description==
====Calling in a calculation====
+
''<span style="color:red;">No additional information</span>''
* Add to a calculation icon: ::File.SetPos(filehandle, address, ::File.Seek_Begin)
+
 
 +
 
 +
==Examples==
 +
===Calling in a calculation===
 +
* Add to a calculation icon: <pre class="brush:[cpp]">::File.SetPos(filehandle, address, ::File.Seek_Begin)</pre>
 +
 
 +
''<span style="color:red;">No additional examples</span>''

Latest revision as of 15:57, 16 January 2014

<sidebar>API Contents</sidebar> Sets the position of the next read or write in the file

Class hierarchy

File

SetPos

Parameters

HANDLE FileHandle

The handle of an open file

ULONG Address

The position in the file, relative to the From position

BYTE From

A location in the file to offset Address from
Typical values for this parameter:
Name Description
Seek_Begin Position offset is an absolute value
Seek_Curr Position offset is relative to the current read/write position
Seek_End Position offset is relative to the end of the file


Return value

This call does not return a value


Detailed description

No additional information


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::File.SetPos(filehandle, address, ::File.Seek_Begin)

No additional examples