Jump to content


Photo
- - - - -

Finding the Graphics Folder


5 replies to this topic

#1 calebsg

calebsg

    Member

  • Members
  • PipPip
  • 38 posts
  • Gender:Male

Posted 16 August 2006 - 08:07 PM

I am using the ProIV ActiveX tree control and I have to specify a graphics folder for the control. I am wondering how I can retrieve the graphics cache folder from the client's PIV (the B line) so that I don't have to hard-code the folder in ProIV.

5.5 VIP.

Thanks,
Caleb

#2 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 17 August 2006 - 01:36 AM

Hi Caleb,

You can use the following to return the graphics folder(s)
#RET = Client.GetPath("%GRAPHICS%")
If you are using web based graphics and need the cache/url then replace GRAPHICS with GRAPHICS_CACHE or GRAPHICS_URL.

You can also find the following folders: TEMP, WINDOWS, HOME and CLIENT.
These are listed against the GetPath() method in the PROIV Properties documentation and are predefined client-side logical database names.

HTH! :complain:

#3 Papa Lazarou

Papa Lazarou

    Member

  • Members
  • PipPip
  • 38 posts
  • Gender:Male
  • Location:Royston Vasey
  • Interests:Collecting wives, pegs.

Posted 17 August 2006 - 01:41 AM

oh, that was me... didn't have 'remember me' checked!
:complain: :o :eek:
You're my wife now, Dave!

#4 Neil Hunter

Neil Hunter

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 414 posts
  • Gender:Male
  • Location:Johannesburg, South Africa

Posted 17 August 2006 - 12:48 PM

Strange, I don't remember specifying a location for graphics. Will check my programs

#5 Neil Hunter

Neil Hunter

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 414 posts
  • Gender:Male
  • Location:Johannesburg, South Africa

Posted 17 August 2006 - 01:19 PM

Apologies, I had it hard coded to my client machines location. My function was purely for a proof of concept.

#6 calebsg

calebsg

    Member

  • Members
  • PipPip
  • 38 posts
  • Gender:Male

Posted 22 August 2006 - 01:47 AM

Thanks for your help -- I hadn't even thought to check GetPath.

Regards,
Caleb



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users