RPGspRedirect Function
Redirects a client's browser to another URL. Does not return a value.
Syntax
RPGspRedirect(URL [: delay])
Part | Description |
URL | Required. The RPGsp page name or URL to redirect to. |
delay | Optional. Number of seconds to wait before redirecting to the new page. Omit this parameter if you do not want a delay. |
Remarks
The URL can contain query string parameters in the form of 'pgmname.pgm?parm1=value1&parm2=value2&parm3=value3'.
Examples
The following line redirects to an error page:
C CallP RPGspRedirect('../error.html') |
Here, we takes the user to http://www.RPGAlive.com after a delay of 5
seconds:
C CallP RPGspRedirect('http://www.rpgalive.com':5) |
The following line calls an RPG Smart Page called "subfile" and passes
a parameter named "Task".
C CallP RPGspRedirect('subfile.pgm?Task=REDISPLAY') |
See
Also
Profound
Logic Software, Inc.
www.ProfoundLogic.com
(937) 439-7925