Got a 4 - but I'm Canadian... I was just trying to think which would be logical for each sign, which either means that I'm not that observant, or that the signs are not terribly intuitive. Judging from most scores, I would believe the latter. - Dallas
Dallas Matthews
Posts
-
Do you know your roadsigns -
ASCII websiteInteresting design. Doing a mouse-over on the navigation "folder" captions is really cool. - Dallas
-
MQOTD [ no GOOG please ]megaadam wrote: We have a winner. But were outa free T-shirts. Sorry. Crap, and here I sit, shirtless...
-
MQOTD [ no GOOG please ]Actually, the first Ghostbusters. Occurred during their first encounter (the ghost librarian).
-
StreamReader constructor fails in FileWatcher event handlerPerhaps explicitly opening the files as readonly will help.
Dim sr As New IO.StreamReader(IO.File.OpenRead(e.FullPath)) message = sr.ReadToEnd() sr.Close()
I colleague of mine was having problems with trying to read, then upload, image files to a database. In the end, both the uploaded files and even the source files were getting hammered somehow, even though the code looked good. Opening the source files as readonly fixed the issue. -- Dallas -
Restore a databaseAll Tasks -> Restore Database... -> Restore from Device (radiobutton option) -> Select Devices... -> Add (supply a filename) After all this, you should be able to do all your "Oks" and restore as normal. Dallas
-
Cannot create Enum Type from Type.GetType("EnumName")My bad.... Turns out the enum I was working with was declared within a class (I guess I had to leave for the weekend to figure it out). Once I moved it so it was no longer nested, it worked.
-
Cannot create Enum Type from Type.GetType("EnumName")I am not refering to the GetType operator, but to the GetType method of the Type class in the System namespace. Just type in System.Type.GetType(...) and intellisense will show you the shared method I am trying to use.
-
Cannot create Enum Type from Type.GetType("EnumName")Type.GetType(typeName As String) expects a string variable. Besides, I do not know what enum will be thrown to the function so I cannot give it a specific enum declaration.
-
Cannot create Enum Type from Type.GetType("EnumName")I need to create an instance of an enum at runtime, so I had thought the Type.GetType(typeName As String) would be sufficient. However, this seems to be not the case.
Public Function GetEnumNames(ByVal enumName As String) As String() Dim t As Type = Type.GetType(enumName) ' returns nothing ' if it worked, then I could do something like this... Dim names() As String = [Enum].GetNames(t) Return names End Function
Is there something I am missing? Or does it not work with Enums? Thanks in advance, Dallas