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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mmilan

  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

Part and Inventory Search

Back
Top