I was just going through documentation for list.
It says: Set (Index As Int, Item As Object)
Replaces the current item in the specified index with the new item.
So can you please tell me correct syntax for replacing an item at index 3?
List1.set( 3, ""&RED& ":" &GREEN&"") is not working !!
Thanks Klaus..and if I want to replace with gg:hh, where gg and hh are two strings representing 2 digit integers, then will it be:
List1.Set(3, &gg& & ":" & &hh&)? Thnx..
If gg and hh are String variables then: List1.Set(3, gg & ":" & hh)
if gg and hh are Int variables then: List1.Set(3, NumberFormat(gg, 2, 0) & ":" & NumberFormat(hh, 2, 0))
If gg and hh are String variables then: List1.Set(3, gg & ":" & hh)
if gg and hh are Int variables then: List1.Set(3, NumberFormat(gg, 2, 0) & ":" & NumberFormat(hh, 2, 0))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.