Subject: | |
From: | |
Reply To: | Dr. Ferenc Nagy |
Date: | Mon, 11 Mar 1996 07:41:01 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
>
> My question for the Formspec gurus or HP is how can one increase the
> number of Processing Specifications for a form? I thought this was to
> remove the editing from the program?
Hi Timothy!
The whole stuff generated by a Formspec form must not exceed 12000 bytes.
1. Why do not you cut your form into smaller pieces?
2. Make the complicated processing not in the Formspec but from the
calling program. I advise it especially when you have 10 similarly
handled fields because when you change a bit the processing then you have
to modify instead of all 10 processing specifications 1 cycle kernel.
I myself had similar problems.
A. Composition of an isotope mixture. A mixture can have up to 20
components and each component has a chemical symbol field, a mass number
field, an excitation mark field, an "is active" field and an atomic ration
field.
B. Permission items for isotope usage. A permission can have 99 items but
a form has place only for 8 items. An item has a number, a class
code, one or two isotopes, permitted activity value, activity unit field.
I moved as much as I could into my Pascal programs handling the forms.
Our shop uses HiLi intrinsics called from Pascal programs.
The basic control structure is:
hpdsend(...);
repeat
hpdprompt(...);
hpdread(...);
if lastfkey=0 then begin
{The last function key pressed by the user is the element of a record
returned by hpdread.}
good_items:=true;
for item:=1 to max_item do begin
good_items:=good_items and check_items(item);
{This procedure modifies the array of hilited fields for the hpdprompt
intrinsic.}
end;
end;
until (lastfkey<>0) or good_items;
I can send you several Pascal procedures handling
Formspec forms from Pascal using HiLi intrinsics.
Regards
Frank
|\ /~ ~~|~~~ Family : NAGY; first name : FERENC; title : Ph. D.
| \ | -+- Institute of Isotopes of the Hungarian Academy of Sciences
| \| | 1121 BUDAPEST Konkoly-Thege M. ut 29, HUNGARY (1525 Bp. POB 77)
`-' ' `-' E-mails : [log in to unmask]; [log in to unmask]
Fax: (36)-1-156-5045, work phone: (36)-1-275-4351, home phone: (36)-1-277-4229.
Home address: H-1214 BUDAPEST Raketa u. 29. I. 3.
There are 3 kinds of programming errors: syntactical, semantical and mystical.
The programmers have to suck up the users just as much as absolutely necessary.
|
|
|