Consultor Eletrônico



Kbase 5571: Number of Lines in PROGRESS Editor Calculation
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Number of Lines in PROGRESS Editor Calculation

900810-JEP01

INTRODUCTION: Date Last Modified: 8/24/90
=============

This Technical Support Knowledgebase entry describes a quick way to
calculate how many lines of text can fit into the PROGRESS Editor based
on the Edit Buffer Size (-e) PROGRESS Start Up Option.


WHY YOU NEED TO DO THIS:
========================

Calculating the Number of Lines in the Edit Buffer can help you
determine if your procedures will fit in the PROGRESS Editor
while you modify or create PROGRESS code.


PROCEDURAL APPROACH:
====================

The number of lines the procedure editor can handle is calculated
by this very simple formula:


Number of Lines = (Edit Buffer Size) / 82


Here, "Edit Buffer Size" is the value used for the edit buffer start
up option multiplied by 1K (1024).


For example, if you started your PROGRESS session using an edit
buffer size (-e) of 63, then the number of lines the editor can
handle is calculated as follows:


# of Lines = (63 * 1024) / 82
= 786.


Note: This calculation is an approximate calculation and the acutual
number of lines the editor can handle will generally be less.


Note: Regardless of the size of the text in a procedure, its' compiled
(.r) version must be smaller than 63K.


ONLINE PROCEDURES OR UTILITIES:
===============================

PROGRESS ON-LINE HELP - Design Limits - See Editor


REFERENCES TO WRITTEN DOCUMENTATION:
====================================

PROGRESS System Administration Guide (PROGRESS version 5) - Chapter on
Startup and Shutdown - Edit Buffer Size

PROGRESS System Administration II: General Manual (PROGRESS version 6)
-
Startup Options - Edit Buffer Size

Progress Software Technical Support Note # 5571