What it does
CreateZip writes a value: it creates rather than reads. It takes zipID (an integer) and filename (a string), and returns nothing. That is the first of 2 forms. zipID is the id you are giving a Zip object: every later call names it by that number.
Syntax
1
CreateZip(zipID integer, filename string)2
CreateZip(filename string) → integerParameters
| Name | Type | In forms |
|---|---|---|
| zipID | integer | 1 |
| filename | string | all |
What each form returns
| 1 | CreateZip(1, "assets/data.dat") | nothing |
| 2 | zip = CreateZip("assets/data.dat") | integer |
Example · generated
Form 1, you choose the id yourself
CreateZip(1, "assets/data.dat")DO Sync()LOOPForm 2, the command hands back the id
zip = CreateZip("assets/data.dat")DO Sync()LOOPCreateZip is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.