中国程序员和其它程序员的区别

看到一篇文章是于中国程序和日本程序的,很有意思

JAPAN:
  Dim gridItemIndex As Integer 'comment
  Dim currentPageIndex As Integer 'comment
  Dim pageSize As Integer 'comment

  gridItemIndex = e.Item.ItemIndex
  currentPageIndex = meisaiIchiran.CurrentPageIndex
  pageSize = meisaiIchiran.PageSize

  Dim updateDataRowIndex As Integer 'comment
  updateDataRowIndex = (currentPageIndex * pageSize) + gridItemIndex
  dt.Rows(updateDataRowIndex).Item(t.BindFldName) = txt

CHINA:
  dt.Rows(.CurrentPageIndex * .PageSize + e.Item.ItemIndex).Item(t.BindFldName) = txt

 

posted @ 2006-02-20 20:48 MasterCai 阅读(...) 评论(...) 编辑 收藏