Indigo Rose Software
  #1  
Old 02-10-2008
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
Bug: Page.Jump() : Stops Script

Hi,

im useing a function in globals an half way through the function i need to jump page and continue the rest of the script, but anything after the Page.Jump command dosent get fired, i thought the whole point of global was to make it available to the entire application.

is this a bug, or is this intended ?
Reply With Quote
  #2  
Old 02-11-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
The Page.Jump action exits the script on the current event , so any action script occurring after it will not be executed. This functionality is by design.
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
  #3  
Old 02-11-2008
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
If you set the variable _NoExitScriptOnPageJump to true, the remaining script in the action will be processed.

Ya see, you can have it both ways
Reply With Quote
  #4  
Old 02-11-2008
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
Quote:
This functionality is by design.
ok, i thought so.

Quote:
_NoExitScriptOnPageJump
ah ha, i knew there had to be a way round it, works like a dream now

maybe the Page.Jump function could use a extra argument

Page.Jump("Page1",true) or false for exit current script

well, heres a quick function (in case anyone has the same issue)
Code:
function PageJumpEX(strPage,BOOL)
	if BOOL then 
		_NoExitScriptOnPageJump=true
	else
		_NoExitScriptOnPageJump=false
	end
	Page.Jump(strPage);
end


-- this is just a test wrapper function
function Test(strPage,BOOL)
	Dialog.Message("Before", "This dialog comes b4 the page jump.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

	PageJumpEX(strPage,BOOL)
	
	Dialog.Message("After", "This dialog comes after the page jump.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end

Last edited by RizlaUK; 02-11-2008 at 10:24 AM.
Reply With Quote
  #5  
Old 02-11-2008
bule's Avatar
bule bule is offline
Indigo Rose Customer
 
Join Date: May 2005
Posts: 1,147
That is the beauty of the APMS... it just works.
__________________
Never know what life is gonna throw at you.
(Based on a true story.)
Reply With Quote
  #6  
Old 02-12-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Sorry RizlaUK for not pointing that out, I was rushed yesterday. And thank you Worm for bringing up that feature.
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
  #7  
Old 02-12-2008
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
With the number of features in AMS, who could possibly remember all of them at the drop of a hat. I just used this feature the other day, so it was fresh in my mind.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TrueUpdate 2.0 Update (v2.0.6.0) Released Brett TrueUpdate 2.0 0 10-31-2006 02:10 PM
Bug or Script issue? Cummins AutoPlay Media Studio 6.0 5 07-18-2006 08:33 AM
New Setup Factory 7.0 (v 7.0.2.0) Available Darryl Setup Factory 7.0 Discussion 9 03-06-2005 02:57 PM


All times are GMT -6. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software