如何使指定 ITEM單元格變色? 問題描述: 如何在使用 SETITEM后修改的各個單元格字體變成蘭色,其他單元格仍保留黑色字體? 解決方案 : string ls_modstring,ls_rows[] long ll_row,ll_col,ll_pos for ll_pos = 1 to long(dw_1.object." name="description" />

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 如何使指定ITEM單元格變色?(原創)

    發表于:2007-05-25來源:作者:點擊數: 標簽:ITEM單元格變色指定原創
    MI LY: 仿宋_GB2312">如何使指定 ITEM單元格變色? 問題描述: 如何在使用 SETITEM后修改的各個單元格字體變成蘭色,其他單元格仍保留黑色字體? 解決方案 : string ls_modstring,ls_rows[] long ll_row,ll_col,ll_pos for ll_pos = 1 to long(dw_1.object.

    MILY: 仿宋_GB2312">如何使指定ITEM單元格變色?

    問題描述:

    如何在使用SETITEM后修改的各個單元格字體變成蘭色,其他單元格仍保留黑色字體?

    解決方案

    string ls_modstring,ls_rows[]

    long ll_row,ll_col,ll_pos

     

    for ll_pos = 1 to long(dw_1.object.datawindow.column.count)

        ls_rows[ll_pos] = ""

    next

     

    dw_1.setredraw(false)

     

    //假設此處要修改第2行、第1列

    ll_row = 2

    ll_col = 1

    dw_1.setitem(ll_row,ll_col,"TESTData")

    if len(ls_rows[ll_col]) = 0 then

        ls_rows[ll_col] = string(ll_row)

    else

        ls_rows[ll_col] = ls_rows[ll_col] + "," + string(ll_row)

    end if

     

    ls_modstring = "#"+string(ll_col)+".Color='0~tcase(getrow() when "+ ls_rows[ll_col] +" then rgb(0,0,255) else rgb(0,0,0))'" 

    dw_1.Modify(ls_modstring)

     

    //假設此處要修改第4行、第2列

    ll_row = 4

    ll_col = 2

    dw_1.setitem(ll_row,ll_col,"TESTData2")

    if len(ls_rows[ll_col]) = 0 then

        ls_rows[ll_col] = string(ll_row)

    else

        ls_rows[ll_col] = ls_rows[ll_col] + "," + string(ll_row)

    end if

     

    ls_modstring = "#"+string(ll_col)+".Color='0~tcase(getrow() when "+ ls_rows[ll_col] +" then rgb(0,0,255) else rgb(0,0,0))'" 

    dw_1.Modify(ls_modstring) 

    dw_1.setredraw(true)


    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>