PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WD8FR] New commands for Arrays
[WD8FR] New commands for Arrays
Débuté par Raimund Schuldhaus, 16 mar. 2004 21:57 - 6 réponses
Posté le 16 mars 2004 - 21:57
Hi all,
found in my WinDev 8 FR some new command for Arrays.
ArraySort
ArrayAdd
ArrayDelete
ArrayDeleteAll
ArrayInsert
ArrayInfo
ArrayCopy
ArraySeek
It seems to me that ArraySort and ArraySeek are a good replacement for the Clarion Queue.

http://www.invitec.com
Posté le 16 mars 2004 - 22:32
Hi,
as it seems to me, Arrays are now growing to be similar to memory zones. I do like memory zones because they have some convenient features and I believe, that WinDev memory zones are already a (much better!) replacement for the Clarion Queue.
Though, arrays are sometimes multi-dimensional and that is not what memory zones could be. Would have to consult my old Clarion manuals, but I dont think that Queues could be multi-dimensional. Memory zones (and Clarion Queues) are rather similar to files in memory, I think.
So, Arrays and Memory Zones will have their places of application.
Best regards,
Guenter

Hi all,
found in my WinDev 8 FR some new command for Arrays.
ArraySort
ArrayAdd
ArrayDelete
ArrayDeleteAll
ArrayInsert
ArrayInfo
ArrayCopy
ArraySeek
It seems to me that ArraySort and ArraySeek are a good replacement for the Clarion Queue.
Posté le 17 mars 2004 - 09:32
Hi,
as it seems to me, Arrays are now growing to be similar to memory zones. I do like memory zones because they have some convenient features and I believe, that WinDev memory zones are already a (much better!) replacement for the Clarion Queue.

With arrays I can store something like objects. That the advantage of an array.
>Though, arrays are sometimes multi-dimensional and that is not what memory zones could be. Would have to consult my old Clarion manuals, but I dont think that Queues could be multi-dimensional. Memory zones (and Clarion Queues) are rather similar to files in memory, I think.
Clarion Queues are multi-dimensional by definition (at least 2-dimensional). One dimension is the structure of the Queue record, the other is the number of records in the Queue. And each element in the queue can contain another Queue.
Raimund
Posté le 18 mars 2004 - 03:40
Hi Guenter
I use Multi Dimmensioned Arrays in
Clarion quite a Bit, for say defining Accounting
Periods.
ACCT:CURRENT_PERIOD[1,1]
ACCT:CURRENT_PERIOD[1,2]!Etc...
They save a lot of unnecesary Typing,and are quite easy to
Reference.
They also come in very handy for Defining Calendars.
Whilst converting one of my apps from Clarion to WinDev
I had to make 20 seperate Entries, where in Clarion
It was just one Multi-Dimmensioned array of @n15.2- format.
Keep well
Peter Purton
Hi,
as it seems to me, Arrays are now growing to be similar to memory zones. I do like memory zones because they have some convenient features and I believe, that WinDev memory zones are already a (much better!) replacement for the Clarion Queue.
Though, arrays are sometimes multi-dimensional and that is not what memory zones could be. Would have to consult my old Clarion manuals, but I dont think that Queues could be multi-dimensional. Memory zones (and Clarion Queues) are rather similar to files in memory, I think.
So, Arrays and Memory Zones will have their places of application.
Best regards,
Guenter

Hi all,
found in my WinDev 8 FR some new command for Arrays.
ArraySort
ArrayAdd
ArrayDelete
ArrayDeleteAll
ArrayInsert
ArrayInfo
ArrayCopy
ArraySeek
It seems to me that ArraySort and ArraySeek are a good replacement for the Clarion Queue.
Posté le 18 mars 2004 - 23:07
Peter,
I use Multi Dimmensioned Arrays in
Clarion quite a Bit, for say defining Accounting
Periods.
ACCT:CURRENT_PERIOD[1,1]
ACCT:CURRENT_PERIOD[1,2]!Etc...

In Windev you can also use multidimension array's without problem.
Only thing with arrays is that it is just one type so not possible
is 'arr1 is array of 100 int by 200 string by 50 currencies'
but to overcome this is to make an array of structures,
where the structure can have different kind of vartypes or to use
an (multidimension) array of variants (only WD7x +).
The new functions in WD8 seems to be functions to make it easy to sort, seek
etc arrays, where now (under WD8) you have to program this manually.
Peter
Posté le 19 mars 2004 - 00:09
Hi Peter (Echo)
Thanks for the info.
Have you heard anything about arrays not
Behaving as they should when using "Replication"
This once was an issue.
Keep well
Peter Purton

Peter,
I use Multi Dimmensioned Arrays in
Clarion quite a Bit, for say defining Accounting
Periods.
ACCT:CURRENT_PERIOD[1,1]
ACCT:CURRENT_PERIOD[1,2]!Etc...
In Windev you can also use multidimension array's without problem.

Only thing with arrays is that it is just one type so not possible
is 'arr1 is array of 100 int by 200 string by 50 currencies'
but to overcome this is to make an array of structures,
where the structure can have different kind of vartypes or to use
an (multidimension) array of variants (only WD7x +).
The new functions in WD8 seems to be functions to make it easy to sort, seek
etc arrays, where now (under WD8) you have to program this manually.
Peter
Posté le 19 mars 2004 - 00:52
Echo Echo Echo Echo ,
Have you heard anything about arrays not
Behaving as they should when using "Replication"
This once was an issue.

Maybe we are talking about something else here.
I'm not talking about indexed fields from a Hyperfile.
These are 1-dimension 'arrays' with problems and special
handling needed (as far as i know).
Peter
(btw, webserver is up).


wdwash example