sequence of lines

David Thompson dthmpsn1 at illinois.edu
Mon Jun 2 19:02:07 PDT 2008


>I use the term Macro in general, as I think programmers still do. For
>Panorama in particular I use 'Procedure', as might have been noticed. If
>Macro disturbs people I won't use it anymore.

I don't find Macro disturbing. I was simply using it as a clue. That, 
plus the fact that you are using an email program that doesn't run in 
OS X, made me wonder if it would be a waste of time to recommend 
features such as custom statements and functions, which aren't 
available for versions prior to Panorama V.

>  I am working in Panorama
>3.1.5, the last version with active 'Equations' in the Design Sheet, witch
>is highly essential for, and extensively used by me, but have access to the
>latest version.

This feature still exists in the latest versions. Some versions may 
have had some bugs, when U.S. Procedures & Formulas weren't being 
used. I think those problems have been worked out, but someone 
outside the U.S., like Kurt Meyer, would know more about that than I 
do.

>  Variables exist to give your procedures as many
>  "memories" as they require. A procedure that
>  needs 100 memories can declare 100 variables.
Is it not so that the unique value of the clipb. for procedures remains the
possibility to copy, like a chameleon, date, text or numeric data from a
database and paste these on other lines in any given field.

This is partly true. When you copy and paste, the data type 
conversions are done for you. If you use a variable to hold the value 
while you move to another record, you need to use the appropriate 
function to do the conversion. For example: Instead of

Field "DateField"
Copy
DownRecord
Field "TextField"
Paste

you could use

Local theDate
theDate = datepattern(DateField, "DD-MM-YYYY")
DownRecord
TextField = theDate

Instead of

Field "TextField"
Copy
DownRecord
Field "DateField"
Paste

you could use

Local theDate
theDate = date(TextField)
DownRecord
DateField = theDate

Text and numbers would be similar. You use val( to convert text to a 
number, and you use str( to convert a number to text.

Dave


More information about the Qna mailing list