0
我在列表視圖中顯示來自mysql的垃圾郵件列表,刪除後我使用show grid但它不刷新,爲什麼?爲什麼顯示不刷新這個rebol listview?
do http://reboltutorial.com/source/mysql-protocol.r
do http://www.hmkdesign.dk/rebol/list-view/list-view.r
window: layout [
grid: list-view 500x400 with [
data-columns: ["ID" "Author" "comment_author_IP"]
viewed-columns: ["ID" "Author" "comment_author_IP"]
data: read/custom mysql://johndoe:[email protected]/wordpress_db [
"SELECT DISTINCT COMMENT_ID, comment_author,comment_author_IP from wp_1_comments WHERE comment_approved='spam'"
]
]
Button 200x30 "Delete all spams" [
read/custom mysql://johndoe:[email protected]/wordpress_db [
"DELETE FROM wp_1_comments WHERE comment_approved='spam'"
]
Print "Spams deleted."
show grid ;SHOULD refresh the grid BUT DOESN'T
]
]
view/title window "All Rebol Tutorial's Spams"
我試過,但似乎並沒有要刷新,也許是一個錯誤? – 2009-11-01 19:59:57