473,383 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

variable file locations how to deal with ?



I have a project with several animations in.
is their a way to set the file location other then retype the location on
the project every time i move the folder

Private Sub Timer1_Timer()
On Error GoTo errhand
Static i As Integer
' this is the line giving me trouble
Image3.Picture = LoadPicture("C:\My Documents\math Project v1\Images\image"
& i + 1 & ".gif")

i = i + 1
If i > 4 Then i = 0
Exit Sub
errhand:
MsgBox Err.Number & " " & Err.Description, vbDefaultButton1, "Error Message"
End Sub

Sparky
Jul 17 '05 #1
2 1521
Sparky AKA_Sparkticus wrote:
I have a project with several animations in.
is their a way to set the file location other then retype the location on
the project every time i move the folder

Private Sub Timer1_Timer()
On Error GoTo errhand
Static i As Integer
' this is the line giving me trouble
Image3.Picture = LoadPicture("C:\My Documents\math Project v1\Images\image"
& i + 1 & ".gif")

i = i + 1
If i > 4 Then i = 0
Exit Sub
errhand:
MsgBox Err.Number & " " & Err.Description, vbDefaultButton1, "Error Message"
End Sub

Sparky


Hi Sparky,

You could place the animations in the same folder as the application
then you could use:

Image3.Picture = LoadPicture(App.Path + "\\GifName.gif")

Jamie
Jul 17 '05 #2


Hi Sparky,

You could place the animations in the same folder as the application
then you could use:

Image3.Picture = LoadPicture(App.Path + "\\GifName.gif")

Jamie


thanx i'll give that a try

sparky
--

It is the mark of an educated mind to be able to entertain a thought
without accepting it. Aristotle
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: swingingming | last post by:
Hi, for 5 weeks, I finished my mdb project. Thanks to all you guys. Now, I would like to put it on a server then 5-6 people can share it. I heard about the splitting back-end database, put it on a...
5
by: Chris R. | last post by:
I'm trying to do something relatively simple - find the offset of the first - or next - occurance of a string in a file, ideally in a case- insensitive way. I've seen a few solutions that seemed...
7
by: M | last post by:
Hi, I need to parse text files to extract data records. The files will consist of a header, zero or more data records, and a trailer. I can discard the header and trailer but I must split the...
9
by: sherifffruitfly | last post by:
Hi, I've a got a little (exercise) program that reads data from a file and puts it into struct members. I run into trouble when one of the data pieces is comprised of several words (eg "john...
3
by: A_Republican | last post by:
I am interested in writing my own secure file deletion program. I want to be able to read and write to my hard drive directly. My application will seach my hard drive for all locations marked for...
8
by: Gerhard Fiedler | last post by:
Hello, I'm not sure whether this is a problem or not, or how to determine whether it is one. Say memory access (read and write) happens in 64-bit chunks, and I'm looking at 32-bit variables....
112
by: istillshine | last post by:
When I control if I print messages, I usually use a global variable "int silent". When I set "-silent" flag in my command line parameters, I set silent = 1 in my main.c. I have many functions...
11
by: Jef Driesen | last post by:
I have the following problem in a C project (but that also needs to compile with a C++ compiler). I'm using a virtual function table, that looks like this in the header file: typedef struct...
2
by: seagullino | last post by:
Hi, I'm hoping that someone can point me in the right direction on this. My macros that open files run fine on my local terminal, but of course, once I email the application to someone else,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.