Quantcast
Viewing all articles
Browse latest Browse all 3780

Priority level on weblistbox

I am practicing my programming for fun. I am doing my web project. Right now, I am trying to figure out how to add +1 to the row for “Urgent” - top level and lowest level - “non-urgent” on a weblistbox. I know it is Web 2.0. it can be a different code.

Here’s my program for the populatelistbox:

select case rs.ColumnAt(7).StringValue
case “Urgent”
dataList.CellTextAt(dataList.LastAddedRowIndex, 7) = rs.ColumnAt(7).StringValue
index = index+1
case “T1-Today”
dataList.CellTextAt(dataList.LastAddedRowIndex, 7) = “Today”
index = index+index+1
case “T2-Tonight”
dataList.CellTextAt(dataList.LastAddedRowIndex, 7) = “Tonight”
index = index+index+index+1
case “T3-Tomorrow”
dataList.CellTextAt(dataList.LastAddedRowIndex, 7) = “Tomorrow”
index = index+index+index+index+1
case “T4-ThisWeek”
dataList.CellTextAt(dataList.LastAddedRowIndex, 7) = “This Week”
index = index+index+index+index+index+1
case “T5-Weekend”
dataList.CellTextAt(dataList.LastAddedRowIndex, 7) = “Weekend”
index = index+index+index+index+index+index+1
case “T6-NextWeek”
dataList.CellTextAt(dataList.LastAddedRowIndex, 7) = “Next Week”
index = index+index+index+index+index+index+index+1
case “OnHold”
dataList.CellTextAt(dataList.LastAddedRowIndex, 7) = “On Hold”
index = index+index+index+index+index+index+index+index+1
end select
end if

Did you notice that I wrote index = … … …, the next can be missing one. Can it be added to weblistbox.rowcount or lastrowindex? Welcome here for a solution. Thanks.

8 posts - 5 participants

Read full topic


Viewing all articles
Browse latest Browse all 3780

Trending Articles