Hi All,

I use 4D V15 on windows and i need to import from an RTF file.

Is possible to do using 4D?

Thanks
/Ferdinando/

Il 06/10/2017 17:48, [email protected] ha scritto:
Send 4D_Tech mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.4d.com/mailman/listinfo/4d_tech
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of 4D_Tech digest..."


Today's Topics:

    1. Re: Create multi array (Jeremy Roussak)
    2. AW: Create multi array (Flury Olivier)
    3. Re: Create multi array (Spencer Hinsdale)
    4. Re: Create multi array (Arnaud de Montard)
    5. Re: [offish]Volume of mail (Arnaud de Montard)
    6. Re: [offish]Volume of mail (Peter Jakobsson)
    7. Re: [offish]Volume of mail (Jim Medlen)
    8. Re: How do workers die? (Julio Carneiro)
    9. What happened to 4D documentation in R releases? (Richard Wright)
   10. RE: What happened to 4D documentation in R releases?
       (Michael McCall)


----------------------------------------------------------------------

Message: 1
Date: Fri, 06 Oct 2017 10:16:04 +0100
From: Jeremy Roussak <[email protected]>
To: 4D iNug Technical <[email protected]>
Subject: Re: Create multi array
Message-ID: <[email protected]>
Content-Type: text/plain;       charset=us-ascii

EXECUTE FORMULA should do the trick.

For ($i;1;17)
        $s:="ARRAY REAL(aANA_"+String($i)+";0)"
        EXECUTE FORMULA($s)
End for

Jeremy

Jeremy Roussak
[email protected]



On 6 Oct 2017, at 09:57, stardata.info via 4D_Tech <[email protected]> wrote:

Hi All,

I need to create 20 arrays that have a similar name.
I can do this using the pointers?
I try with this code, but in compiled mode not work.

For ($I;1;17)
$vPoint:=Get pointer("aAna_"+String($I))
ARRAY REAL("aAna_"+String($I);0)
End for

Have suggestions?

Thanks
Ferdinando

------------------------------

Message: 2
Date: Fri, 6 Oct 2017 12:21:55 +0200
From: "Flury Olivier" <[email protected]>
To: "'4D iNug Technical'" <[email protected]>
Subject: AW: Create multi array
Message-ID: <[email protected]>
Content-Type: text/plain;       charset="utf-8"

I would not do this unless there is no other solution for the problem I want to 
solve.

Better solutions:

- Pre-declare a number of arrays (Array text(MyArray_001 etc.) and use them by get 
pointer (Get pointer ("MyArray_"+string($lCounter))
- On interface level you can address most elements without declaring a process 
variable, e.g. Listbox columns.

If you do an EXECUTE FORMULA check this:

http://doc.4d.com/4Dv16/4D/16.2/Using-tokens-in-formulas.300-3432926.en.html

-----Ursprüngliche Nachricht-----
Von: 4D_Tech [mailto:[email protected]] Im Auftrag von Jeremy 
Roussak via 4D_Tech
Gesendet: Freitag, 6. Oktober 2017 11:16
An: 4D iNug Technical <[email protected]>
Cc: Jeremy Roussak <[email protected]>
Betreff: Re: Create multi array

EXECUTE FORMULA should do the trick.

For ($i;1;17)
        $s:="ARRAY REAL(aANA_"+String($i)+";0)"
        EXECUTE FORMULA($s)
End for

Jeremy

Jeremy Roussak
[email protected]



On 6 Oct 2017, at 09:57, stardata.info via 4D_Tech <[email protected]> wrote:

Hi All,

I need to create 20 arrays that have a similar name.
I can do this using the pointers?
I try with this code, but in compiled mode not work.

For ($I;1;17)
$vPoint:=Get pointer("aAna_"+String($I)) ARRAY
REAL("aAna_"+String($I);0) End for

Have suggestions?

Thanks
Ferdinando


------------------------------

Message: 3
Date: Fri, 6 Oct 2017 03:43:56 -0700
From: Spencer Hinsdale <[email protected]>
To: 4D iNug Technical <[email protected]>
Subject: Re: Create multi array
Message-ID: <[email protected]>
Content-Type: text/plain;       charset=us-ascii


1) Use a Two Dimensional Array:
http://doc.4d.com/4Dv16/4D/16.2/Two-dimensional-Arrays.300-3433911.en.html

2) Decide if your arrays are Rows or Columns.  The Docs call them Rows.  If you decide 
your arrays are Columns, then you must REMEMBER the Docs need "translation" 
anytime you refer to them.

3) Decide if you will use array zero.  If you decide to use array zero, then 
you must REMEMBER to Clear it yourself.


That's it.


You will want to fill your arrays, so you may want to pass them to another 
method, or perhaps another process, or even another computer (method with 
execute-on-server attribute).  You will want to declare them.  You can declare 
20 arrays in 20 lines.  Or, see #1.

You may want to display your arrays.  If so, you will use a List Box.  And your 
arrays will be Columns.  See #2.

And you may want somewhere to put additional info, that goes with the data when 
you pass the arrays, and stays synchronized when your user moves or sorts your 
List Box.  And once your users see these arrays they will want others.  If so, 
you will likely re-use your code, your List Box, and your arrays.  In which 
case, see #3.


HTH,

Spencer




On Oct 6, 2017, at 1:57 AM, stardata.info via 4D_Tech <[email protected]> 
wrote:

Hi All,

I need to create 20 arrays that have a similar name.
I can do this using the pointers?
I try with this code, but in compiled mode not work.

For ($I;1;17)
$vPoint:=Get pointer("aAna_"+String($I))
ARRAY REAL("aAna_"+String($I);0)
End for

Have suggestions?

Thanks
Ferdinando
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************


------------------------------

Message: 4
Date: Fri, 6 Oct 2017 15:50:02 +0200
From: Arnaud de Montard <[email protected]>
To: 4D iNug Technical <[email protected]>
Subject: Re: Create multi array
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Le 6 oct. 2017 à 12:43, Spencer Hinsdale via 4D_Tech <[email protected]> a 
écrit :


1) Use a Two Dimensional Array:
Two dimensional array would be my choice too. Using EXECUTE FORMULA to 
"declare" a variable seems ugly, especially in compiled environment…


The Docs call them Rows.
yes, and that drives me nuts, it's 1000 times wrong… Who would say that 'Size 
of array' returns the number of *columns* in a mono dimensional array?
• 1D array has 1 column and N rows
• 2D array is a collection of 1D arrays of the same type, each of them is a 
column…


If you decide to use array zero, then you must REMEMBER to Clear it yourself.
CLEAR VARIABLE does that… with one exception:

array text($arr;1)
$arr{0}:="123"
clear variable($arr)
assert($arr{0}="")  //OK

array text($arr;1;1)
$arr{0}{0}:="123"
clear variable($arr)
assert($arr{0}{0}="")  //OK

array text($arr;0;0)
$arr{0}{0}:="123"
clear variable($arr)
assert($arr{0}{0}="")  //ko * goToTAOW:=true *


**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to