我
dt=current data table();
For( i = 1, i <= N Row(dt), i++,
If(
:分== 29 &:分[i+1]==31,
dt<<add rows(1,i);
dt:Class[i+1]=0;
dt:Position[i+1]=0;
dt:Time[i+1]=inFormat( "00:30", "hr:m" );
)
);
dt=current data table();
For( i = 1, i <= N Row(dt), i++,
if(dt:分[i+1]-dt:分==-58,
dt<<add rows(1,i);
dt:Class[i+1]=0;
dt:Position[i+1]=0;
dt:Time[i+1]=dt:Time[i+k]+time(0,1,0);
);
If( dt:分[i+1]-dt:分[i]>=2,
j=dt:分[i+1]-dt:分[i]-1;
dt<<add rows(j,i);
for( k=1,k<=j,k++,
dt:Class[i+k]=0;
dt:Position[i+k]=0;
dt:Time[i+k]=dt:Time[i+k]+time(0,1,0);
)
)
);
[/i][/i]
For( i = 1, i <= N Row(dt), i++,
If(
:分== 29 &:分[i+1]==31,
dt<<add rows(1,i);
dt:Class[i+1]=0;
dt:Position[i+1]=0;
dt:Time[i+1]=inFormat( "00:30", "hr:m" );
)
);
dt=current data table();
For( i = 1, i <= N Row(dt), i++,
if(dt:分[i+1]-dt:分==-58,
dt<<add rows(1,i);
dt:Class[i+1]=0;
dt:Position[i+1]=0;
dt:Time[i+1]=dt:Time[i+k]+time(0,1,0);
);
If( dt:分[i+1]-dt:分[i]>=2,
j=dt:分[i+1]-dt:分[i]-1;
dt<<add rows(j,i);
for( k=1,k<=j,k++,
dt:Class[i+k]=0;
dt:Position[i+k]=0;
dt:Time[i+k]=dt:Time[i+k]+time(0,1,0);
)
)
);
[/i][/i]