Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / opening pictures

Author
Message
Zaine
19
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 21st Jun 2006 08:25
how do i program a way that when someone types in an location of an image, it will open it?
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 21st Jun 2006 09:15
Step 1:
You will need to give the user the option to enter the path. You will then store that path in a variable.
For this example I'm going to use the Input command

Input a$

Step 2:
Next we need to open that image, below I am loading it as image 1 but you can specify whatever you like

Load Image a$, 1

After that it's up to you what you want to do with it!

However getting someone to type in the path could be a little confusing so maybe later look into File Exploring windows. If and when you need help with this, drop me a line.

Hope that helps

M.I.A is pending
Zaine
19
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 21st Jun 2006 09:47
how do i do the file exploration??
that looked like a god idea and i thought about it but i didnt know you could do i twith DBP....
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 21st Jun 2006 10:07 Edited at: 21st Jun 2006 11:00
Ok...let me look for the code snippet for it. It's a great piece of code developed by Jessticular.
brb

[EDIT]
Here it is, hope it helps.


M.I.A is pending

Login to post a reply

Server time is: 2024-09-25 01:25:35
Your offset time is: 2024-09-25 01:25:35