Hi,
I'm trying use OraParameter objects to to a batch insert against a table. When I actually execute the SQL statement, I am getting a 4139 error (something to do with Arrays), and consulting the associated error log, I find it to be full of junk like this:
Here's the problem - there is no...
I suppose, as you would know the location of this log file whenever the application was running, you could if you wished open the stream and hold it as a class/instance variable somewhere, but if I were to sit down and do it myself, I would instantiate (create a new) instance of the stream from...
1 - In either VB6 or DotNet, open it for Append as and when you need it. Don't leave it open all the time.
2 - The StreamReader and StreamWriter are fine.
Martin.
I don't think you can use initialiseComponent (which is how the IDE sets everything up), because that function assumes that your objects have not been instantiated...
I'm not sure if there is a quick way of doing this, bar writing a general routine called from Form_Load that uses reflection to...
dim s(0 to 10) as String
Dim l As System.Collections.Generic.List(Of String) = New System.Collections.Generic.List(Of String)()
l.AddRange(s)
Exploiting the fact that DotNet arrays implement IEnumerable, and that Generic List's AddRange method takes one...
Of course, this is not a cast - so...
The DotNet framework itself supports this sort of functionality, but I haven't personally used it...
Suggest you google "symmetric encryption dotnet" - should turn up something...
mmilan
Public sub ReadFromFile(vstrFileName as string)
...
'This function is written such that in reads the file pointed to in the argument...
...
end sub
public sub ButtonHandler(sender as Object, e as EventArgs) Handles but1.Click, but2.click
if sender is but1 then
ReadFromFile("File1.txt")...
ArrayList is a class, so you'll need to initialise it
ArrList = New ArrayList()
In fact, come to think of it, there's an ICollection constructor for ArrayList objects, and Arrays offer ICollection, so hows about this:
Dim iArray() As Integer = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
Dim ArrList as...
Depends what you're looking for...
If you're looking for a database server, look at Postgresql. If not, and a file based system is what you're looking for, try SQLite.
Google should find either.
Martin
Erm, are you insane?
I've just put this in on VB2003...
Sub Main()
Dim s As String
Dim i As Integer
For i = 200 To 1 Step -1
Console.WriteLine(i.ToString())
Next
s = Console.Read()
End Sub
Worked perfectly...
Am I missing something?
Hi...
I don't use VS2008 - but I would expect to find this setting in the Project Properties - and I would expect it to be called something like "Target Framework"...
I thought youtube provide the code to embed their videos in your HTML - is this code not working for you?
mmilan
Hmm...
I like EarthAndFire's solution better than the others - including my own...
I'm feeling a little thick for not thinking of that myself... It has the virtue of being fairly simple so the new chap can follow it was well...
Cheers,
Martin.
For the particular application I have in mind (just letting you copy the values around) then I don't suppose it matters, but there's also the time difference to be taken into account... Just because a piece of data was valid five minutes ago (when you saved the value) it doesn't mean is valid...
Have you considered XML Digital Signatures for your licensing model? Registering against a remote RDBMS is all very well, but what happens when the internet connection goes down, or if the user <shudder> doesn't have net access?
XML Digital Signatures give you a means for the user to submit...
The problem is that this doesn't confirm that the information came from an approved source - just that the information being dropped has the same content as a proper source control at the time the that control last did a dragdrop...
I'm thinking of using the something like txt1.DoDragDrop(txt1...
Thanks for that... I didn't notice anything in the event argument that I could use, but as I said, there's always the option of passing a reference to the source control itself...
Just seems odd to me that they don't provide something on the event argument object for it - I would have thought...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.