amre's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
10 (0.02 per day)
Joined:
06-March 12
Profile Views:
270
Last Active:
User is offline Nov 21 2012 10:31 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   amre has not set their status

Posts I've Made

  1. In Topic: delete an item in a list from parameter value

    Posted 21 Nov 2012

    View PostSkydiver, on 19 November 2012 - 05:18 PM, said:

    No you should not and cannot modify the container that you are iterating over using foreach(). If you used a for() loop, you can do the modification. The common pattern though in .NET code is is to use two loops like in this pseudo code:
    List<T> toDelete = new List<T>();
    foreach(T t in targetList)
    {
        if (t is item to be removed)
            toDelete.Add(t);
    }
    
    foreach(T t in toDelete)
    {
        targetList.Remove(t);
    }
    
    


    thank you, with your help I got it working
  2. In Topic: updating an access table from vb6 Datatype mismatch error

    Posted 6 Apr 2012

    Thanks for the help, it worked great, sorry I forgot to thank you earlier
  3. In Topic: coding for delete button not work properly

    Posted 6 Apr 2012

    try
    [
    "delete from thetablename where recordID = " + txtRecordID.text
    ]

    I had a similar issue but with an update statement and this answer was suggested and it worked a treat.

    recordID would be whatever the primary key id call
    and txtRecord.text the textbox that displays the primary key

    hope this works for you
  4. In Topic: running a query with date() not showing the data

    Posted 6 Apr 2012

    Yeah i thought it must be something to do with that, and i had already checked the database date formats.
    after reading your post I realised that i forgot to check the Visual basic bit..... it was formatted wrongly. I feel a bit stupid now for never noticing this before.
    Thanks for your help anyway.
  5. In Topic: updating an access table from vb6 Datatype mismatch error

    Posted 11 Mar 2012

    ps
    sorry I made a mess of posting the code

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

amre hasn't added any friends yet.

Comments

amre has no profile comments yet. Why not say hello?