Jump to content

Substracting strings?


This topic is 6443 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello people!

I was just wondering if this approach is even possible.

All of the image paths in field are constant:

-----------fields---------------

ItemID: xxxxx

ImageName:xxxxx.jpg

Image_Path: M/xxxxx.jpg"]file://X:/images/M/xxxxx.jpg

--------------------------------

how to set field to the same string but altered?

c_Large_Image_Path: L/xxxxx.jpg"]file://X:/images/L/xxxxx.jpg

My inital though was to :

c_root= TrimRight((Image_Path - ImageName),3)

to produce a "root" value:

file://X:/images/

and then

c_final= (c_root & "M/" & ImageName)

but the problem is "subtracting text strings"

Anyone has ideas?

Much Obliged!

Link to comment
Share on other sites

Hi Fishma!

Thanx for the post...I am sorry, the sample above just that....the actual path varies and is not constant. blush.gif

the "true" path is:

file://X:/images/LocationName/M/

where I have a few locations and are diff.

But, I managed to get it to work.

The idea here was to "open/View" larger image:

- without ever storing it in DB

- having it in the same root folder but only the "last folder" would differ.

- images are named the same

Here is how it worked out: attached image

Image_Path_Estimate.jpg

Link to comment
Share on other sites

This topic is 6443 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.