[英]Comparing month and year from a date in Listview
i am trying to compare month and year from a date in Listview with following code....我正在尝试将 Listview 中某个日期的月份和年份与以下代码进行比较....
If Text(ListView1.ListItems.SubItems(12),"mmm") = Me.CbMonth.Value And Year(ListView1.ListItems.SubItems(12)) = Me.CbYear.Text
however its giving error as "Method or Data member not found"但是它给出的错误是“找不到方法或数据成员”
pls help请帮助
tried all combinations of listview references to a subitem尝试了对子项的列表视图引用的所有组合
You'll need to provide an index for the desired listitem.您需要为所需的列表项提供索引。 For example, if you want the subitem for the first item in your list...
例如,如果您想要列表中第一项的子项...
ListView1.ListItems(1).SubItems(12)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.