• Member Avatar for stpatrck
    stpatrck

    Began Watching ,guys, help me, i am a graduating student

    how to calculate the total lates, absence ot and workng hours of each employee, that depends on their time in and time out, and also their summarry need ur help …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in ,guys, help me, i am a graduating student

    What are you having trouble with? What code have you written? Where is it failing? Generic questions like this have a horrible chance to be answered, especially if you don't …
  • Member Avatar for stpatrck
    stpatrck

    Began Watching ex object value is acutally NULL - It's True, I Tell You

    I have one line of code that throws an exception, and when the catch(Exception ex) line executes, ex is NULL. Am I interpreting this correctly? If this is happening, does …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in ex object value is acutally NULL - It's True, I Tell You

    Is your break point ON the catch(exception ex) line or past it? If your break point is ON the catch line the 'ex' variable has not been initiated or assigned …
  • Member Avatar for stpatrck
    stpatrck

    Began Watching what is the Http status code 418 ?

    what is the http status code 418 ? and who to fix this ?
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in what is the Http status code 418 ?

    [I'm a teapot](http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error) Apparently the server is a teapot trying to make coffee and cannot serve pages to you.
  • Member Avatar for stpatrck
    stpatrck

    Began Watching Making Games for the Web

    Hi, Whats currently the hot tool for developing simple games for the Internet? I'm talking about games like the ones you might see on Miniclip.com, freeaddictinggames.com or newgrounds.com. I want …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Making Games for the Web

    Unity is an excellent game engine. It's free and supports cross-platform deployment including web, iOS, Android and more.
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Is this a correct SQL Statement?

    Try using TOP 'N' in your select statement... SELECT TOP 3 * ... ORDER BY {scoreColumnName} DESC This works with MSSQLServer. It may be different depending on the DB Server …
  • Member Avatar for stpatrck
    stpatrck

    Began Watching Is this a correct SQL Statement?

    int counter; counter=1; rs = statement.executeQuery("SELECT * FROM Quiz WHERE SrNo=counterr");
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Is this a correct SQL Statement?

    is 'counterr' in your last statement supposed to be the int counter defined above it? If so... rs = statement.executeQuery("SELECT * FROM Quiz WHERE SrNo = " + counter + …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Displaying items with properties in array or list?

    If you are not restricted to using an array you may want to consider List<Student>. This would simplify your code to be something like... Initialize the list of students var …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Displaying items with properties in array or list?

    On a side note, I prefer to use the Length property over the Count() extension method when dealing with arrays. [A good thread about array.length vs array.count()](http://social.msdn.microsoft.com/Forums/en-US/d897034c-380a-4a60-9539-1a1ae64ee951/arraylength-vs-arraycount?forum=csharpgeneral)
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Displaying items with properties in array or list?

    If you are initializing an array with the size of 50 ClassList.Count() will always be fifty no matter how many Students you add to the list. This means that your …
  • Member Avatar for stpatrck
    stpatrck

    Began Watching Displaying items with properties in array or list?

    I have troubles trying to display a list of items/objects in a array. What I'm doing is I'm adding students with a name, surname, age, and marks for subjects (Properties) …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Displaying items with properties in array or list?

    If you use a 'foreach' or 'for' loop you can simply pass the values from the list. You don't need to create a new Student object in your display method. …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Array List

    As for creating a method to set the Candidate's name... You have a constructor that is assigning the 'name' via the 'anyName' param so you already have it. Simply remove …
  • Member Avatar for stpatrck
    stpatrck

    Began Watching Array List

    I need help with my getName method. The error message is invalid method declaration, return type required. And i don't know how to write a method to change the canidate's …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Array List

    Check line 40. Compare it to line 51.
  • Member Avatar for stpatrck
    stpatrck

    Began Watching [programming practice] using const when needed vs always use it

    Can you guys please help me understand when to use const? For example, if I have the following functions: viod add (int* array) { int total = array[1] + array[2]; …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Last 5 record fetch from table

    my mistake. the limit statement should be at the end of the query. Try referring to [This StackOverflow Question](http://stackoverflow.com/questions/573646/mysql-select-from-n-last-rows) if it is still not working after moving the limit statement.
  • Member Avatar for stpatrck
    stpatrck

    Began Watching Last 5 record fetch from table

    I Have **"user_chat"** table name his 4 columns "msg_id" Auto Increament "chat_from_id" "chat_to_id" "chat_msgs" SELECT `chat_msgs` from `user_chat` where chat_from_id='2'AND chat_to_id='10' LIMIT 0,10 Also I have used **DESC** using above …
  • Member Avatar for stpatrck
    stpatrck

    Replied To a Post in Last 5 record fetch from table

    try to order the results by the msg_id descending something like... `select chat_msgs from user_chat where chat_from_id='2' and chat_to_id='10' limit 0,10 order by msg_id desc`

The End.