Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

Kevin Brydon

@Kevin Brydon
About
Posts
38
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Screen Shots
    K Kevin Brydon

    I'm looking for an alternative to this. Something that allows me to, for example, press F3 and the screen will automatically capture the current window/screen and save it to a file on my computer. Pasting into paint is annoying when you have loads of screenshots to do

    IT & Infrastructure question

  • Screen Shots
    K Kevin Brydon

    Just wondering what everyone else uses for capturing screenshots in windows? Theres hundreds of programs on offer but i dont really know which one to pick. Preferably after a free one!

    IT & Infrastructure question

  • What is the difference between Return and Exit Sub?
    K Kevin Brydon

    Next time you have a question like "what is the difference between x and y" try searching google for something like "x vs y". Its usually quite effective. try this

    Visual Basic question

  • software licensing
    K Kevin Brydon

    it sounds like you have very little programming experience judging by the questions you are asking. why not buy a programming book or get one from you library and have a read. or try wikipedia. i'd recommend learning java if youre wanting something that will run on a variety of operating systems. or if youre just wanting to write programs that run on microsoft windows why not download some of the visual studio express editions and learn from there.

    Visual Basic question csharp visual-studio adobe

  • Properties with parameters and databinding
    K Kevin Brydon

    I got the same answer off a guy i work with. I think thats the way to do it. I dont get why the databinding process doesnt just ignore the optional parameter. Thanks for your response!

    Visual Basic wpf wcf tutorial question

  • Properties with parameters and databinding
    K Kevin Brydon

    Hi, I have a class that has a few properties that accepts an optional boolean parameter. For example: Private _venues AS BSVenue Public ReadOnly Property Venues(Optional ByVal forceupdate As Boolean = False) As BSVenue() Get If _venues Is Nothing Or forceupdate Then _venues = BSVenue.GetVenuesByCourse(CourseID) End If Return _venues End Get End Property When i try binding a member of this class to a control it says it cannot find the property. It works fine if the property has no parameters. Whats going on?

    Visual Basic wpf wcf tutorial question

  • What is the difference between VB and VB.NET?
    K Kevin Brydon

    i cant believe you bothered to read that!

    Visual Basic help question csharp c++

  • Combobox with multiple selection
    K Kevin Brydon

    Why not just use the listbox? is there some reason you dont want to use it?

    Visual Basic help question

  • UPDATE JOIN problem
    K Kevin Brydon

    Thanks for your advice. At the moment my code is pretty inefficient so i can see how the update join may speed things up and make my life a little easier!

    Database help database sql-server sysadmin question

  • updateing problem
    K Kevin Brydon

    i think the real challenge is trying to figure out what your question is.

    Database database help csharp question

  • UPDATE JOIN problem
    K Kevin Brydon

    Ok. It would be nice if you could do it though. how about DELETE JOIN? I'm sure you can do that forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2541925&SiteID=1 (its a little slow today) But for some reason my sql isnt working for that either. ive tried numerous combinations with this being the most sensible i think: DELETE FROM Courses INNER JOIN Deliveries ON Courses.CourseID = Deliveries.CourseID WHERE Courses.CourseID = @CourseID exactly the same error : "Incorrect syntax near 'INNER'"

    Database help database sql-server sysadmin question

  • UPDATE JOIN problem
    K Kevin Brydon

    Hey. I understand that in sql server 2005 you can write statements to update several tables at once using join. Is that correct? I'm trying to this but keep getting an "Incorrect syntax near 'INNER'" error. My SQL is UPDATE Courses INNER JOIN Deliveries ON Courses.CourseID = Deliveries.CourseID SET Courses.IsDeleted=1, Deliveries.IsDeleted=1, Courses.DeletedOn=@DeletedOn, Deliveries.DeletedOn=@DeletedOn WHERE Courses.CourseID=@CourseID Any help would be appreciated

    Database help database sql-server sysadmin question

  • ByRef vs Return
    K Kevin Brydon

    Thanks for your answers. I've decided to get rid on my byref/boolean functions and opted for the first option. I think its the most sensible choice for my application and possibly is the best choice for most apps.

    Visual Basic database visual-studio help discussion learning

  • ByRef vs Return
    K Kevin Brydon

    If the first function handled all its exceptions internally it would return nothing when there was database error or there was no course with that ID in the database. The calling method wouldnt be able to tell what really happened. With the second function you could differentiate between when the function failed or whether there just wasnt a course with that id in the database. i dont think the calling method should care about how the function failed, just whether it did or not. Allowing the functions to throw out exceptions in my opinion is a bad idea if you can just handle them internally. Yes or no?

    Visual Basic database visual-studio help discussion learning

  • ByRef vs Return
    K Kevin Brydon

    Im not sure of your point. With the second method you also have the option of throwing an exception or returning false (instead of nothing). the calling methods would be something like this (if the functions didnt handle their own exceptions 1. try course = GetCourse(courseid) catch 'error handle end try if course is nothing then ' do something else 'do something else end if 2. try if GetCourse(courseid, course) then ' do something else ' do something else end if catch ' error handle end try theyre essentially the same as far as i can tell

    Visual Basic database visual-studio help discussion learning

  • ByRef vs Return
    K Kevin Brydon

    I am currently building a simple database access class. I have a function GetCourse which I want to get a course object from the database. I could specify it like this: public static function GetCourse(byval courseid as integer) as Course An alternative would be: public static function GetCourse(byval courseid as integer, byref course as Course) as Boolean the two methods are only different by how they return the values. the first would return Nothing when it couldnt find a course (throw an exception or return Nothing when a database error occurred). the second function would return false when it couldnt find a course and true when it could (either throwing exceptions or returning false in the case of a db error) and it would assign the course details to the course parameter. The calling method would either check for Nothing in the case of the first function or check for true/false in the case of the second function to indicate that the course could be found. I would like to hear peoples opinions on which function you would prefer and why. Or if there is a better alternative Thanks!

    Visual Basic database visual-studio help discussion learning

  • Selecting the latest records
    K Kevin Brydon

    Thanks for replying blue_boy and harini. I used blue_boys solution in the end and it works as i want it. it actually fits into another much longer sql statement.

    Database database algorithms help question

  • Selecting the latest records
    K Kevin Brydon

    Hi, I have a table that lists the incomes and expenditures of various organizations. Organization | Report Year | Income | Expenditure Org 1 | 1/4/2008 | £20 | £30 Org 1 | 1/4/2007 | £20 | £30 Org 2 | 1/4/2003 | £20 | £30 Org 2 | 1/4/2002 | £20 | £30 Org 2 | 1/4/2001 | £20 | £30 Org 3 | 1/4/2006 | £20 | £30 Org 4 | 1/4/2002 | £20 | £30 I have been trying to write a query that will return the latest record for each organization. So the result would be Org 1 | 1/4/2008 | £20 | £30 Org 2 | 1/4/2003 | £20 | £30 Org 3 | 1/4/2006 | £20 | £30 Org 4 | 1/4/2002 | £20 | £30 Tried searching but came up with no uselful answers. Can someone help? It needs to be compatible with Microsoft Access X|

    Database database algorithms help question

  • Count number of records in related tables
    K Kevin Brydon

    Great. Thanks very much!

    Database database help question

  • Count number of records in related tables
    K Kevin Brydon

    Hi. I have database structure like this: Organizations(OrganizationID, Name) Members(MemberID, OrganizationID, Name) Courses(CourseID, OrganizationID, Name) I need to return the Organization Name, the number of members of that organization and the number of courses in that organization in one sql statement so I'd have a table like [OrganizationName] [Number of Members] [Number of courses] [Org A] [10] [22] [Org B] [92] [11] ... Is it possible without using a stored procedure? Can anyone help me out? Any help would be much appreciated.

    Database database help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups