Delphi Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
델파이 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
FreePascal/Lazarus
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
델마당
볼랜드포럼 광고 모집

델파이 Q&A
Delphi Programming Q&A
[3696] >질문< [델파이] table busy 다시..
bawoo [ ] 1622 읽음    1998-07-21 09:55

류님 답변 고마워요.  저두 그건 알겠는데 도무지 그런경우가 아니거덩요.

다음 소스를 좀 봐주실수 있을지요?

부탁합니다....................... 바우였어요.


procedure Tmonth.data_reset;
  var ss,s1,s2,s3:string; ii:integer;
      sum:array[1..31] of integer;
  begin
    s1:=edit1.Text;
    while length(s1)<4 do s1:='0'+s1;
    s2:=edit2.Text;
    while length(s2)<2 do s2:='0'+s2;
    ss:=s1+'-'+s2;
    table1.Active:=false;
    table1.BatchMove(table4,batcopy);

    table1.open;
    table1.Insert;
    table1['name']:='합계';
    table1['code']:='';
    for ii:=1 to 31 do sum[ii]:= 0;

    table3.open;
    table3.last;
    table1.DisableControls;
    while not table3.BOF do
      begin
        table1.First;
        table1.Insert;
        table1['name']:=table3['name'];
        table1['code']:=table3['code'];
        for ii:=1 to 31 do
          begin
            s3:=inttostr(ii);
            while length(s3)<2 do s3:='0'+s3;
            table1[s3]:= ilil_income(s1,s2,s3,table1['code']);
            sum[ii]:=sum[ii]+table1[s3];
          end;

        table3.Prior;
      end;

    table1.Locate('name','합계',[]);

    table1.Edit;
    for ii:=1 to 31 do
      begin
        s3:=inttostr(ii);
        while length(s3)<2 do s3:='0'+s3;
        table1[s3]:= sum[ii];
      end;

    table1.EnableControls;
    table1.close;
    table3.close;

    table1.Active:=true;
  end;




+ -

관련 글 리스트
3696 >질문< [델파이] table busy 다시.. bawoo 1622 1998/07/21
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.