R: Duplication of list lines

Franco Maregotto franco at hotelaqua.it
Fri Dec 10 08:34:20 EST 2010


If you want to do it in a row by row basis:
For list.$line from 1 to list.$linecount step 1
If list.$selected()
Calculate row as list
Do list.$add().$assignrow(row)
End If
End For
Not tested (just wrote code here in Outlook), but should work

Remember: if the list is a large one, calculate list.$linecount into a local
var (lineCount), so you'll avoid Omnis to count the rows each loop, and
substitute the value (IE For list.$line from 1 to LineCount step 1

HTH
Franco

-----Messaggio originale-----
Da: omnisdev-en-bounces at lists.omnis-dev.com
[mailto:omnisdev-en-bounces at lists.omnis-dev.com] Per conto di Robert Raj
Inviato: venerdì 10 dicembre 2010 13.13
A: OmnisDev List - English
Oggetto: Duplication of list lines

Hi,

Could any one help me to duplicate the selected lines in a list itself?

I tried but the load from list or listname.$loadcols does not load the
current values to list fields.

Thanks in advance.

Regards
Robert
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list