Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently May 17th, 2024, 8:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Strage behaviour with a simple variable
PostPosted: November 30th, 2004, 1:17 pm 
Offline

Joined: November 3rd, 2004, 4:28 pm
Posts: 119
Location: Limousin, France
I wonder if anyone can assist with this one.

I have a publication consisting of several pages. I needed to record the number of times a page was visited, so I incorporated this facility in a button (called "Recent") which also switched to the page in question. (see the attached screen cpature).

This works fine, and the .txt file increments by one each time the page is visited (or rather, when the button is pressed).

The problem is that this restricts me to a fixed path - I now need to have this behaviour available on a removable drive (which could be any drive letter on a target machine).

So I replaced the fixed path in the Destination with <SYSTEM_PUBLICATION_DIR\MonthPagevisits.txt

When the publication runs, it still generates the MonthPagevisits.txt file, but the first figure which appears is 50, and this doesn't increment, no matter how many times the button is pressed.

Is there any obvious reason for this strange behaviour?

Should I delete the variable (and all other references) and start again?

Chris


You do not have the required permissions to view the files attached to this post.

_________________
Chris Kaley
Win XP Pro SP2, Intel 2.66 GHz Core 2 Quad extreme, 4 Gb RAM, NVidia 8800 GTX, 768Mb RAM, Dual Iiyama TFT
Opus Pro XE v4.5, XE v5.5


For this message Khazi has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 30th, 2004, 1:23 pm 
Offline

Joined: November 4th, 2004, 11:01 am
Posts: 21
Location: Banbury, UK
there is a small syntax error in your code
try instead,
Code:
<SYSTEM_PUBLICATION_DIR>MonthPagevisits.txt'

i.e. add an '>' after the variable and remove the '\'

Hope this helps

_________________
Alan Dews
Senior Developer
Digital Workshop


For this message Alan Dews has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 30th, 2004, 2:53 pm 
Offline

Joined: November 3rd, 2004, 4:28 pm
Posts: 119
Location: Limousin, France
Thanks, Alan, for your quick reply

The ">" was actually in my syntax - I just missed it when typing my post! I have removed the "\", though and all now appears to be well....

Thanks for your assistance.

Chris

_________________
Chris Kaley
Win XP Pro SP2, Intel 2.66 GHz Core 2 Quad extreme, 4 Gb RAM, NVidia 8800 GTX, 768Mb RAM, Dual Iiyama TFT
Opus Pro XE v4.5, XE v5.5


For this message Khazi has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group