REBOL Library REBOL

Very Simple

Updated: 29-May-2003

Return to main library index

A Button with Shortcut Key

button-key.r

1-Jun-2000

Shows how to easily add a shortcut key to a button.

1 line

230 bytes

 
Append to a Text File

ftpappend.r

26-May-1999

Append to a text file using FTP.

1 line

236 bytes

 
Check for Directory

ftpdircheck.r

26-May-1999

Check if a filename belongs to a directory using FTP.

1 line

257 bytes

 
Run Script from FTP

ftpdo.r

26-May-1999

Do a REBOL script via FTP.

1 line

193 bytes

 
Make a directory

ftpmakedir.r

26-May-1999

Make a file directory on an FTP server.

1 line

217 bytes

 
Read a Text File

ftpread.r

26-May-1999

Read a text file from an FTP server and print it.

1 line

215 bytes

 
Rename a File

ftprename.r

26-May-1999

Rename a file on a server using FTP.

1 line

213 bytes

 
Upload a File

ftpup.r

26-May-1999

Upload a binary file to an FTP server.

1 line

218 bytes

 
Write Text File

ftpwrite.r

26-May-1999

Write a text file to an FTP server.

1 line

216 bytes

 
Hello World Window

hello.r

20-May-2000

Opens a window that displays text and a quit button

1 line

234 bytes

 
Non-echoing Input

inhide.r

15-Sep-1999

Hide input for passwords (no echo characters)

1 line

200 bytes

 
REBOL Script in HTML File

inhtml.r

24-Apr-1999

Shows how to embed a REBOL subscript within an HTML document.

1 line

956 bytes

 
Email a Web Page

mailpage.r

10-Sep-1999

Send a web page. (simple)

1 line

221 bytes

 
Script with a Preface

preface.r

24-Apr-1999

Text before the REBOL header is ignored.

1 line

402 bytes

 
EMail Setup (for Send)

setemail.r

6-Nov-1997

Minimum set-up for sending email messages from REBOL.

1 line

842 bytes

 
Simple Script

simple.r

24-Apr-1999

The traditional Hello World example script.

1 line

208 bytes

 
View 3 Buttons

view-buttons.r

1-Jun-2000

Example of how to display three buttons down the page.

1 line

238 bytes

 
View HTML Code

view-html.r

1-Jun-2000

Fetch a web page and view its HTML code in a window.

1 line

232 bytes

 
View an Image in a Window

view-image.r

1-Jun-2000

View an image in a window.

1 line

264 bytes

 
Download Web Page

webget.r

20-May-1999

Fetch a web page and save it as a file.

1 line

217 bytes

 
Web Page Displayer

webprint.r

20-May-1999

Fetch a web page and display its HTML code.

1 line

207 bytes

 
Web Page Emailer

websend.r

20-May-1999

Fetch a web page and send it as email.

1 line

219 bytes

 
CLS

cls.r

3-Jul-2002

Clears the console screeen.

1 line

295 bytes

 
Content-Type

content-type.r

3-Jul-2002

Prints Content-type header for cgi.

1 line

374 bytes

 
Delete a File or Directory

ftpdel.r

26-May-1999

Delete a file or directory from a server using FTP.

2 lines

278 bytes

 
Download a Binary File

ftpdownbin.r

26-May-1999

Download a binary file from an FTP server.

2 lines

278 bytes

 
Get File Size and Date

ftpinfo.r

26-May-1999

Get size and date information about an FTP file.

2 lines

306 bytes

 
Protecting Passwords

passprotect.r

15-Sep-1999

Prompt for password to use before transfer.

2 lines

270 bytes

 
Convert Line Terminators

reline.r

4-Jun-1998

Convert all line terminators to those used by the local computer. Works for PC, Mac, Unix, Amiga, and all others

2 lines

367 bytes

 
View an Image and its File Name

view-image-name.r

1-Jun-2000

Display an image in a window with its file name printed directly below it.

2 lines

355 bytes

 
View an Image behind File Name

view-image-name2.r

1-Jun-2000

Display an image with its file name on top of it.

2 lines

320 bytes

 
View A List of Data

view-list.r

1-Jun-2000

Example of how to display a simple block of data as fixed width columns in a window. Code is just one line.

2 lines

393 bytes

 
Search a Web Page

webfind.r

20-May-1999

Search a web page for a string, and save the page to a file if it was found

2 lines

310 bytes

 
ConsoleIO

consoleio.r

1-Aug-2002

Console prompt output save,saves all console input to history.log file when in console mode.

2 lines

527 bytes

 
Encoding Binary Data in REBOL Scripts

bin-save.r

30-May-2000

Example of how to save base-64 encoded binary data in REBOL scripts. (See bin-data.r as an example of how to decode the data.)

3 lines

396 bytes

 
CGI Form Emailer

cgimail.r

19-Jul-1999

Emails the contents input into a web CGI form.

3 lines

558 bytes

 
Read File Directories

ftpdir.r

26-May-1999

Read and print directories from an FTP server.

3 lines

308 bytes

 
POP Email Port Spec

popspec.r

10-Sep-1999

POP port specification used to connect to an email server. All of the mail reading examples use this.

3 lines

658 bytes

 
Time a Web Page

timepage.r

24-Apr-1999

Time how long it takes to fetch a web page from the net. (Just the HTML file, not the images.)

3 lines

317 bytes

 
Prompt for User and Password

userprotect.r

15-Sep-1999

Prompt for username and password to use for a transfer.

3 lines

317 bytes

 
Display Black Text

black-text.r

1-Jun-2000

Display black text on a white background.

4 lines

283 bytes

 
Email a Text File

mailfile.r

10-Sep-1999

Send a text file (as text of message).

4 lines

366 bytes

 
Download List of Files

ftpdown.r

26-May-1999

Download a list of binary files using FTP.

5 lines

335 bytes

 
Upload Several Files

ftpupload.r

26-May-1999

Upload multiple files with FTP using login and password.

5 lines

340 bytes

 
Keep an ISP Connection Alive

keep-alive.r

16-Sep-1999

This script can be used to keep an ISP connection alive by accessing the net every so often.

5 lines

622 bytes

 
Save Email to File

mailsave.r

10-Sep-1999

This example reads all email and saves it to a file.

5 lines

500 bytes

 
Check for REBOL Pro Features

licensed.r

18-May-2001

An example of how to detect View/Pro and Command special features.

5 lines

456 bytes

 
Check for a File or Directory

ftpcheck.r

26-May-1999

Check for the existence of an FTP file or directory.

6 lines

382 bytes

 
Update from WWW.REBOL.COM

update.r

12-Oct-1998

Updates your rebol.r and reboldoc.r files from the web.

6 lines

378 bytes

 
Average

average.r

3-Jul-2002

Averages the values in the Block.

6 lines

474 bytes

 
Celcius

celcius.r

3-Jul-2002

Converts Temperature in Fahrenheit to Celcius.

6 lines

533 bytes

 
Fahrenheit

fahrenheit.r

3-Jul-2002

Converts Temperature in Celcius to Fahrenheit.

6 lines

552 bytes

 
Source

source.r

3-Jul-2002

Prints the script source code for a word.

6 lines

446 bytes

 
Images Buttons

button-image.r

20-May-2000

Example of how to make buttons made from images. Clicking on a button updates text in the window.

7 lines

550 bytes

 
Transfer REBOL Files to Server

ftpallto.r

18-Dec-1997

FTP all .r files in the current directory to a server.

7 lines

386 bytes

 
Total Size of .r Files

sizedir.r

24-Apr-1999

Print the total size of all .r files in the current directory.

7 lines

352 bytes

 
Download Multiple Pages

webgetter.r

20-May-1999

Fetch several web pages and save them as local files.

7 lines

336 bytes

 
Email Message Sender

mailsend.r

10-Sep-1999

A very simple way to send an email.

8 lines

459 bytes

 
Email Group Sender

mailsendgroup.r

10-Sep-1999

A very simple way to send email to a group.

9 lines

521 bytes

 
Search Multiple Web Pages

webfinder.r

20-May-1999

Search multiple web pages for a string, and print the URL of the ones where it was found.

9 lines

429 bytes

 
Send Pages Every Hour

webloop.r

20-May-1999

Send a set of pages via email every hour.

9 lines

380 bytes

 
Data Directions

directions.r

9-May-1999

Illustrates the data descriptive capabilities of REBOL -- Gives the road directions to the REBOL office from San Francisco. Readable by humans and by REBOL.

10 lines

572 bytes

 
Time Several Web Sites

timesites.r

24-Apr-1999

Time how long it takes to read several web home pages. (Just the HTML file, not the images.)

10 lines

455 bytes

 
Itemize

itemize.r

3-Jul-2002

Appends Value to Values, if Value not all ready in block.

10 lines

541 bytes

 
Tokyo Tower Watcher

tokyotower.r

29-Nov-2001

To display a picture of the Tokyo Tower, updating every 60s

11 lines

761 bytes

 
Send Email with Buttons

emailsend.r

20-May-2000

A very simple email sending application that shows how text is input and buttons are used.

13 lines

650 bytes

 
Leap-Year

leap-year.r

3-Jul-2002

Returns true for a leap year.

13 lines

594 bytes

 
Interweave

interweave.r

18-Jul-2002

Combines two series into one series by interleaving their values.

13 lines

813 bytes

 
Round

round.r

3-Jul-2002

Rounds a number at any given place.

14 lines

1091 bytes

 
Dialog Box

dialog.r

20-May-2000

Pops up a dialog requestor that displays a message and waits for the user to click a button.

15 lines

663 bytes

 
Progress Bar

progress.r

20-May-2000

Shows a progress bar in a dialog box.

15 lines

529 bytes

 
Email Headers

mailheader.r

10-Sep-1999

Send email with a custom header.

16 lines

507 bytes

 
Test FTP Commands

ftpdemo.r

24-Jun-2001

Demonstrate ftp commands and results

16 lines

930 bytes

 
Days-Per-Month

days-per-month.r

3-Jul-2002

Adds Days per Month to system/locale.

16 lines

654 bytes

 
Accumulate

accumulate.r

3-Jul-2002

Cumulates values in a block together, by successively applying the function to each value in Series.

17 lines

950 bytes

 
Find-Block

find-block.r

3-Jul-2002

Finds a tuple in a block or tuple-space.

17 lines

754 bytes

 
Tally

tally.r

3-Jul-2002

Tallies up the values in a series, producing a block of [Value Count] pairs.

17 lines

802 bytes

 
Delete-Dir

delete-dir.r

3-Jul-2002

Deletes the specified files(s) or directory.

19 lines

792 bytes

 
Rebol date to-timestamp

to-timestamp.r

18-Jul-2001

For better date storage (in large date databases)

20 lines

820 bytes

 
CSV

csv.r

3-Jul-2002

.CSV file manipulation functions.

20 lines

1038 bytes

 
Iota

iota.r

3-Jul-2002

Makes a block containing a range of values, from Start to End.

21 lines

948 bytes

 
Dice Roller

roll.r

14-Oct-2002

A general purpose dice roller, supports custom dice and roll-and-keep highest or lowest dice.

24 lines

1316 bytes

 
Dice

dice.r

3-Jul-2002

Dice.

29 lines

944 bytes

 
Full REBOL Header

headfull.r

29-Apr-1999

Shows the optional definitions that can be used within a REBOL header.

30 lines

2190 bytes

 
Easy REBOL GUI Page

easypage.r

23-May-2000

Shows how to create a simple page with paragraphs, buttons, and entry fields on a colorful backdrop.

35 lines

1511 bytes

 
Map

map.r

3-Jul-2002

Maps or applies the function to all elements of the series.

40 lines

1863 bytes

 
Build-Tag

build-tag.r

3-Jul-2002

Build-Tag is a replacement Build-Tag that handles XML attributes.

42 lines

1554 bytes

 
Permute

permute.r

3-Jul-2002

Permutes a matrix.

52 lines

2379 bytes

 
Binary Data in REBOL Scripts

bin-data.r

30-May-2000

Example of how to decode binary data in REBOL scripts This example includes a base-64 encoded image. (See bin-save.r for an example of how to create this file.)

3 pages

8847 bytes

 


The line count is for code lines only and is used as a rough estimate of code size. It does not include script headers, blank lines, or comment lines.

To add or modify a file, run REBOL/View and click on the Add-Script icon in the Library folder. Be sure that the script has a REBOL header that describes its purpose.

You can download the entire library as a compressed, self-extracting REBOL archive. The file is 585 KB and requires REBOL to extract. You may need to right click on this link to save the file in some browsers.

Once you have extracted the files, you can build these HTML index pages locally by running the build-lib.r script.

Note: All scripts are provided AS IS without warranty and without liability to the author or to REBOL Technologies.

REBOL is a trademark of REBOL Technologies.