The wife is right. He shouldn't have bought 6 cartons of milk. He should have *bought* 1 and *brought* 6. :cool: [UPDATE] Fixed the subject on the 3rd phrase... X|
fabrice leal
Posts
-
Problem being Programmer -
Learning russian ...;) ... ok, keep them coming ...
-
Learning russian ...I'm looking for excuses for learning russian (auto-didact... X|) ... any russian hack..:~... coders that could tell if there are any resources exclusively in russian (reverse engineering, artificial intelligence, ...) that make it worth to do it? ...and yes, i know about google translator
-
MidPointRounding for Math.Round() method in .Net ApplicationUse the Math.Ceiling(1.5) = 2, Math.Ceiling(1.0001) = 2 Math.Ceiling(-1.5) = -1, Math.Ceiling(-1.99999) = -1 ... Is what you are looking for? PS: If it is, I'll start hiding my savings under my bed :laugh:
-
links in DataGridViewLinkColumnHi Is there any way of capturing a link click event from a DataGridViewLinkCell? I'm starting to think that this column's only purpose is to underline text... :) Anyway, any help is apreciated Thanks
-
ctype operator in Visual Basic; string to MySqlDateTimeok, never mind... i think i just solved my problem with this code:
If e.DesiredType.Equals(GetType(MySql.Data.Types.MySqlDateTime)) Then
If String.IsNullOrEmpty(e.Value) Then
e.Value = DBNull.Value
Else
Try
e.Value = New MySql.Data.Types.MySqlDateTime(DateTime.Parse(e.Value))
Catch
e.Value = DBNull.Value
End Try
End If
e.ParsingApplied = True
End Ifin the method
Private Sub DataGridCusto_CellParsing(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellParsingEventArgs) Handles DataGridCusto.CellParsing
thanks
-
ctype operator in Visual Basic; string to MySqlDateTimeI have NO code in my application to handle the input of the date, just the necessary to create the datasource for the datagridview. I use a CalendarColumn to pick a date in the column... When I pick a value for the cell, and I "get out" of the cell, a exception is thrown, and a dialog with the error is displayed: "Invalid cast from System.String to MySql.Data.Types.MySqlDateTime". The call Stack in the message says that the error is thrown in the method PushFormattedValue, that I suppose that cannot be overloaded (or whatever...) PS: Sorry for my english :)
-
ctype operator in Visual Basic; string to MySqlDateTimeHi I'm having problems due to a cast (*), made by the software automatically, from string to MySqlDateTime; Is there any way of writing the ctype operator for class string, to make the cast to MySqlDateTime ? Can someone give some help??? (*) - the exception apears on a DataGridView, that is connected to a table in a mysql database. I'm already using a CalendarColumn, found somewhere in the web, but as soon as I pick a value, vb throws a exception throgh DataGridView.DataError event, saying: "invalid cast from System.String to MySql.Data.Types.MysqlDateTime"
-
Since you all like his code so well.I think I need a lobotomy...
strCH = strData.Substring(intLoop, 1)
this is to extract the char of strData in each iteration, rigth? Argh! X| -
Form submitionHI, how do I force the submit of a form in Perl? I wanna make a script that sends data, through "form style", without the "click-submition-button" part
-
How to Save Web Page, complete in C#Download the html page, use regular expressions or something similar to find references to images or css on the html,and download them as well... :^)
-
GNU Prolog - Seems very simpletry this: ?- depends(X,comicbook) ?- depends(X,electricity) (no clue about "If you don't have steam engines, what can you not invent?") :doh: ?- depends(aluminum, Y), depends(electricity,X) ?- depends(iron,Y) PS: I assume that depends(X,Y) means that, with X, you can make Y
modified on Tuesday, April 14, 2009 11:53 AM