Wednesday, February 13, 2008

Updating Items in Collection

I have been working with collections for sometime now, i had always either deleted or added item in the collection but never updated. Today i had a need to do that, when i searched i couldn't find a direct method to get a item in a collection updated. After some confusing moments i ended up the following code

Dim t As New Collection
Dim iRemove As Integer
Dim iCnt As Integer

iRemove = 3
t.Add ("te")
t.Add ("ew")
t.Add ("Ad")
t.Add ("Adtree")
t.Add ("tewww")
MsgBox t(iRemove)
Call t.Add("Ads", , IIf(iRemove = t.Count, iRemove, iRemove + 1))
For iCnt = 1 To t.Count
Debug.Print t(iCnt)
Next
t.Remove (IIf(iRemove + 1 = t.Count, iRemove + 1, iRemove))
MsgBox t(iRemove)

For iCnt = 1 To t.Count
Debug.Print t(iCnt)
Next


Nothing too fancy in that code, so far it has worked fine but will wait till i implement it in the main code to celebrate ;-) :D. On another note, i have been reviewing UCertify's PrepEngine, I must say it's pretty darn good. Soon, in couple of days, you see a full review of their product in my blog.


Sphere: Related Content

Friday, November 16, 2007

Post in the new blog post a/c

This is a post to test the new template i have applied and also testing the place where it is getting published.


Sphere: Related Content

Blog movement

I am moving my blog temporarily to http://vikramjb.blogspot.com. All future posts will be posted there. This is just a temporary move as we are changing our hosting provider.


Sphere: Related Content

Friday, October 26, 2007

Finally I am an MCP

phew..!! After 5 years of postponing i am finally an MCP. I just need one more paper to complete MCTS Web. I don't see that happening this year as i have enough work to do both officially and personally. I have started to write down requirements for a small Google calendar like application for internal use. I am planning to do the whole thing with Asp.Net + Ajax. It would be a good experience for me. On a side note, i read it SharpDevelop's blog that they are looking for people to help out in fixing bugs in their latest(3.0) WPF version. I hope to contribute to some including the Asp.Net designer that i have been tinkering for so long.. Anyways gotta go now..


Sphere: Related Content

Wednesday, September 26, 2007

Project Asp.Net Editor begins..

I finally found a way to position the controls in a WebBrowser control. With that working i think i finally can start work on the Asp.Net Editor I have been thinking for a long long time now. I would be able to provide full support for dragging and dropping html controls and resizing them and also positioning them just like we do in Microsoft Visual Web Developer 2005 Express Edition except that i have not yet figured out how to support web server controls. I am gonna start work on a stand alone prototype and finish it in couple of weeks. Yes i am slowly programmer ;-). I found a lot of help on positioning controls in a sample HTMLComponent released by Nikhil. This code was later released as WebMatrix.. Anyways there are lots of work to be done, including my official work. Gotta go now..


Sphere: Related Content