Показать сообщение отдельно
Старый 24.03.2005, 09:19   #4  
belugin is offline
belugin
Участник
Аватар для belugin
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,622 / 2925 (107) +++++++++
Регистрация: 16.01.2004
Записей в блоге: 5
в BestPractices есть статья Traversing multi selected records in a data source

вот ссылка, которую можно запихать в адресную строку IE:

mk:@MSITStore:C:\Program%20Files\Navision\Client\Bin\Dev_BPHB.chm::/Application_Design/Design_Patterns/TraverseMultiselectedDataSource.htm

Там рекомендуют делать так:
PHP код:
void clicked()
{
    
xRefReferences xRefReferencesEdit;
    
    for (
xRefReferencesEdit xRefReferences_ds.getFirst(1) ?      // are there any marked records -
                                  
xRefReferences_ds.getFirst(1) :  //   if yes, get the first marked record
                                  
xRefReferences;                  //   else, use the current record
         
xRefReferencesEdit;                                       // continue as long as there are some records to work on
         
xRefReferencesEdit xRefReferences_ds.getNext())         // get the potential next marked record
    
{
        
// do processing with xRefReferencesEdit
        
...
    }