Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mmilan

    Oracle Objects For OLE (OO4O) problem with arrays

    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...
  2. mmilan

    Good book on VB.net

    Anything by Tim Patrick...
  3. mmilan

    Read and write from/to text files

    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...
  4. mmilan

    Read and write from/to text files

    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.
  5. mmilan

    Initialising controls on a form

    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...
  6. mmilan

    Convert array to generic list?

    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...
  7. mmilan

    Encyption

    Bugger. Just realised I'm in the vb6 forum... Sorry about that. Erm - create an interop assembly? Martin
  8. mmilan

    Encyption

    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
  9. mmilan

    Using a Sub multiple times

    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")...
  10. mmilan

    convert array to array list

    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...
  11. mmilan

    .net newbie

    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
  12. mmilan

    Step -1 problems (2003)

    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?
  13. mmilan

    Trying to write better code

    Consider implementing your stored procedure as a user defined function instead... The advice about parameters is bang on - follow it... Martin.
  14. mmilan

    Step -1 problems (2003)

    The problem was in the bounds you gave your loop... For i =1 to 120 step -1 vs For i = 120 to 1 step -1 milan
  15. mmilan

    Embedding Youtube Videos into Application

    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
  16. mmilan

    Finding the source control on ta dragdrop event...

    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.
  17. mmilan

    Finding the source control on ta dragdrop event...

    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...
  18. mmilan

    VB accessing remote SQL tables

    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...
  19. mmilan

    Finding the source control on ta dragdrop event...

    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...
  20. mmilan

    Finding the source control on ta dragdrop event...

    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...

Part and Inventory Search

Back
Top