Page Index Toggle Pages: 1 [2]  Send Topic Send Topic Print Print
Very Hot Topic (More than 25 Replies) The path to image files (Read 3046 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: The path to image files
Reply #15 - Nov 16th, 2007 at 3:34pm
Print Post Print Post  
Bummer.  Steve, upgrade, this program is fantastic!

In any case, Ray, would my idea work in 2.0?
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: The path to image files
Reply #16 - Nov 16th, 2007 at 3:47pm
Print Post Print Post  
I believe it will when used with SetAltImagePath().  Wink

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: The path to image files
Reply #17 - Nov 16th, 2007 at 8:39pm
Print Post Print Post  
You could also change the path in application programming, looking for a unique file or environment variable on the computer

Warning....bad syntax follows, just a concept.......

If FileExists(Workcomputer\path\filename  OR GetEnv= Work, then Image path =ABC
If FileExists(Homecomputer\path\filename OR GetEnv = Home, then Image path =XYZ


  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: The path to image files
Reply #18 - Nov 16th, 2007 at 9:37pm
Print Post Print Post  
Bob_Hansen wrote on Nov 16th, 2007 at 8:39pm:
You could also change the path in application programming, looking for a unique file or environment variable on the computer

Warning....bad syntax follows, just a concept.......

If FileExists(Workcomputer\path\filename  OR GetEnv= Work, then Image path =ABC
If FileExists(Homecomputer\path\filename OR GetEnv = Home, then Image path =XYZ


That won't work even in 2.0 in the On Application Open event, as SetAltImagePath() needs an element reference.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: The path to image files
Reply #19 - Nov 16th, 2007 at 10:42pm
Print Post Print Post  
Couldn't the path be done in Application program using logic as above and saved as a global variable?
Then the global variable could be used in the SetAltImagePath command?

  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: The path to image files
Reply #20 - Nov 17th, 2007 at 3:23pm
Print Post Print Post  
Steve_in_Texas wrote on Nov 15th, 2007 at 11:49pm:
I need a way to change the 'default image path' based on which machine is being used. 1 machine is running in client/server mode so the image path is simply G:\photos but the other machine (running remotely) is not on the network so the image path needs to be C:\photos.

Erika's suggestion to simply use "\Photos" as the image path, is the best solution.

But, if for some reason you need to have the drive letter as part of the path for the machine running Client/Server mode, you can share the entire drive where the images reside on the standalone machine, and then map that network share to the same drive letter that is declared in the image path setting.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: The path to image files
Reply #21 - Nov 18th, 2007 at 9:27pm
Print Post Print Post  
Thanks for all the input, but my delimma still exists.

At work, my photos are on H: drive (there is not enough space on C: drive to move all the photos to C:)
At home, I do not have an H: drive, so all my photos are on C: drive.

Just need a quick, easy solution to change the imagepath from H: to C: when I want to take work home. Doesn't seem to exist...at least not in 1.5.

:(
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: The path to image files
Reply #22 - Nov 19th, 2007 at 12:22am
Print Post Print Post  
Steve,

The solution is to use a relative image path.

Photos - Uses the Photos directory under the current working directory.
\Photos - Uses the Photos directory on the root of whatever drive you are on.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: The path to image files
Reply #23 - Nov 19th, 2007 at 3:22am
Print Post Print Post  
[quote author=Steve_in_Texas link=1193760874/0#21 date=1195421240]At work, my photos are on H: drive... At home, I do not have an H: drive, so all my photos are on C: drive.[/quote]
My previous post addressed this scenario.

At home, you can share the root directory of drive C:. Then, use "Map Network Drive" under the Tools menu in Windows Explorer to set that network share (\\MyComputerName\C) as drive H:. You will actually be able to access the same drive as both C: and H: at the same time.

This will allow you to leave the application settings the way they are for work.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: The path to image files
Reply #24 - Nov 19th, 2007 at 8:29pm
Print Post Print Post  
Carl,

Thanks for explaining. Sounds like that should do the trick! :)

Erika - is anyone working in the sales office at Lantica today? (no one is answering the phone) I ordered 8 client seats this morning, but never got them emailed to me. Usually you guys are so fast!

Thanks,
Steve
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: The path to image files
Reply #25 - Nov 19th, 2007 at 8:37pm
Print Post Print Post  
[quote author=Steve_in_Texas link=1193760874/0#24 date=1195504198]Erika - is anyone working in the sales office at Lantica today? (no one is answering the phone) I ordered 8 client seats this morning, but never got them emailed to me. Usually you guys are so fast![/quote]
Hmmm. I didn't see an order go by. Did you use the online form? At any rate, I think that at least one person is out sick today which may slow everyone else down a bit.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: The path to image files
Reply #26 - Nov 19th, 2007 at 8:45pm
Print Post Print Post  
Yes, I ordered online and left a message for someone to call me back.

I worked all weekend to prep our office for 2.0, then when all the files were updated and Monday business was beating down our door, I realized that I still needed to buy the client licenses! :(

My fault, I know, but if someone can email them over, we would all appreciate it.

my order # is 1195491645 placed at 10am this morning.

Tanks,
Steve
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send Topic Send Topic Print Print