Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

System Template

truncate() - Available since version 1.3.12

Removes all but the default fragment ID (0) for a specific file

See Also

rb.file.get()    rb.file.create()    rb.file.append()    rb.file.modify()   

Syntax

number = rb.file.truncate(fileID)

Parameters

The 'truncate' method takes 1 parameter:

Name Type/Value Range/Length Description
fileIDnumberValid fileID Required. Identifier of file to be removed from the catalogue.

Results

The 'truncate' method returns number:

Type/Value Range/Length Description
number fileID Delete all fragmentIDs>0

Whitebeam release 1.3.36
(loadtime : 73ms)