Subversion Repositories wimsdev

Rev

Rev 13825 | Rev 14441 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1971 guerimand 1
!!!### langage independant
2
!!
23 reyssat 3
# update_field is number of field to update
4
# update_content is the new content.
5
 
6
scnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets
7
!for s=1 to $scnt
12701 bpr 8
  sheet_$s=!record $s of wimshome/log/classes/$wims_class/sheets/.sheets
13833 bpr 9
  sheet_$s=!line 1 to 10 of $(sheet_$s)\
23 reyssat 10
\
11
\
12
\
13
\
14
\
15
\
13825 bpr 16
\
17
\
23 reyssat 18
 
19
!next s
20
!if $update_field!=0
12701 bpr 21
  sheet_$sheet=!replace line number $update_field by $update_content in $(sheet_$sheet)
23 reyssat 22
!else
12701 bpr 23
  !mexec sheetshift.sh
23 reyssat 24
!endif
25
!writefile wimshome/log/classes/$wims_class/sheets/.sheets
26
!for s=1 to $scnt
12701 bpr 27
  !if $s!=$sheet or $update_field!=0
13833 bpr 28
    sf=!line 1 to 10 of $(sheet_$s)
12701 bpr 29
    !appendfile wimshome/log/classes/$wims_class/sheets/.sheets :$sf
30
  !endif
23 reyssat 31
!next s