Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Recent content by Troy

  1. Troy

    How can I execute two programs in t

    A batch file is really simple. First create a new text file on your desktop (or anywhere you want for that matter) and rename it to my2Programs.bat. The first part of the filename is really unimportant and you can name it to what ever you need, but the extention must remain .bat. Now open the...
  2. Troy

    Test for file open by another app ?

    You could try this: on error resume next Open &quot;MYFILE.TXT&quot; For Output Lock Read Write As #iHandle if err.number <> 0 then 'THE FILE IS IN USE else CLOSE #iHandle KILL file.txt&quot; endif on error goto 0 What the above snippet does is to try an lock a file. This will...
  3. Troy

    Calculating Area Under the Graph Using Visual Basic

    Why not do the calculus? Eqn: Load = 0.85*(Displacement)^2 I take it displacement is the variable: C = 0.85 'a constant x = displacement y = Cx^2 To find the area under the curve: /end | | Cx^2 dx /start Start is the starting point...
  4. Troy

    Re- Initialising Arrays in multiple forms (or maybe Garbage Collection

    When you are finished using the array, trying erase: erase myArray 'This frees up the memmory used by the array. Are the arrays private to the particular form they are on? Or are they global variables? Troy Williams fenris@hotmail.com
  5. Troy

    Reading and Parsing a text file into VB

    Try this, dim ff as integer dim raw as string dim Fname as string 'the path to the file dim lines() as string 'used to hold the lines of the text file ff = FreeFile Open Fname For Binary As #ff Raw = String$(LOF(ff), 32) Get #ff, 1, Raw Close #ff lines() = Split(Raw, vbnewline) 'this assumes...
  6. Troy

    VB Zip

    There are a number of activex controls that let you work with zip archives. I would recommend this route as they have already been debugged. Check: www.download.com www.softseek.com Troy Williams fenris@hotmail.com
  7. Troy

    which language

    I would be interested in hearing which packages are running on unix as I am a fan of that flavour of O/S.... Troy Williams fenris@hotmail.com I am a recent Mining Engineering Graduate with an interest in Genetic Algorithms, Engineering and Computers and Programming. I also have an interest...
  8. Troy

    VB programming for printing formatted text

    I will check out your software, but as far as scientific equations go. I don't think that it is easy. What I have seen mathematica do is output the equations as images (jpg,bmp,etc.).This might be of some use. Unfortunately I little experience with generating graphics. You might also try using...
  9. Troy

    VB programming for printing formatted text

    Here is a sample that I have pulled directly from a program that I wrote a while back. I have not altered the sub in any way. It should give you an idea on how to print. Note: cdOne is the common dialog control... Private Sub cmdPrint_Click() Dim i As Integer Dim count As Integer...
  10. Troy

    which language

    Most of the SCADA stuff that I have seen runs on an MS platform any way, so VB would be in that list as well. Intellutions package has dll's and ocx's that can be easily integrated and used by VB to create many useful applications. Troy Williams fenris@hotmail.com I am a recent Mining...
  11. Troy

    Visual Basic 6 Progress Bar

    It depends on what you want to use it for. I will give you an example. Make sure that the progress bar component is visable in the component toolbar (Microsoft common controls 6). To chart the progress of say an iterated calculation that starts at 1 and goes to 251 do this: progressbar1.min =...
  12. Troy

    Recent graduate......now what?

    I recently graduated from university with a degree in Mining Engineering. I have been employed with a small (about 300 workers at peak times of the year) ready-mix company that supplies wet and dry shotcrete to the local mines. I work there in the capacity of a network administrator. I don't...
  13. Troy

    t = $$$

    I would love to see a discipline based web site that had a huge repository of technical articles, journals and reviews that would be searchable by keyword, idea or by user definable criteria. <br><br>As far as I am concerned, publishers of technical material should have all their complete works...
  14. Troy

    Linux Installation

    I am not sure of this, but NT should be able to handle the dual, or in your case triple boot of those OS's. I have never done this as I subscribe to the belief that each OS should have it's own computer to live on. I have heard and read a number of&nbsp;&nbsp;stories about the problems of...
  15. Troy

    Linux Installation

    Windows NT does not like LILO. If you did manage, Win NT would probably refuse to work. I have seen this happen a couple of times. My advice, stick with the floppy.<br><br>Troy

Part and Inventory Search