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...
You could try this:
on error resume next
Open "MYFILE.TXT" For Output Lock Read Write As #iHandle
if err.number <> 0 then
'THE FILE IS IN USE
else
CLOSE #iHandle
KILL file.txt"
endif
on error goto 0
What the above snippet does is to try an lock a file. This will...
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...
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
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...
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
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...
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...
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...
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...
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 =...
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...
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...
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 stories about the problems of...
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