[SOLVED] sc_redir()

Is this supposed to display the application being called?

Re: sc_redir()

sc_redir (apl, parm1; parm2; …, target,error)

Macro to redirect the processing to other application or URL.
If the redirecting application uses parameters, these must be passed in the following format:

  1. After the name of the application, use the comma delimiter (,) then
  2. = (equal sign) .
  3. More than one parameter, must be separated by semicolon (:wink:
  4. The target determine which application is opened (default=_self): _self, _parent or _blank.
  5. Optional parameter to set error messages redirection in the application: “F” redirects if there is error in the application (default value) and “E” does not redirect.

Ex1: Application without parameters nor target
if ([glo_usr] == “test”)
{
sc_redir(aplx.php);
}

Ex2: Application with parameters and without target.
if ([glo_usr] == “test”)
{
sc_redir(aplx.php, parm1={var_test}; parm2=“xxx”);
}

Ex3: Application without parameters and with target
if ([glo_usr] == “test”)
{
sc_redir(aplx.php, “”, “_parent”);
}

Ex4: Application with parameter and target.
if ([glo_usr] == “test”)
{
sc_redir(aplx.php, parm1={var_test}; parm2=“xxx”, “_blank”);
}

Ex5: URL
if ([glo_usr] == “test”)
{
sc_redir(http://www.my_page.com);
}

Re: sc_redir()

You can read about macros in Webhelp>>Appendix>>Programming>>Scriptcase Macros

Best Regards,

V?tor Jamil

Re: sc_redir()

Thanks for the replies, guys.

However, I do read the instructions before posting for help.

What was happening was sc_redir(myapp.php) wasn’t taking me anywhere.

I re-installed everything for the umpteenth time. It now works.

I have to confess, there are a couple of things in SC that are driving me crazy.

Thanks

Re: [SOLVED] sc_redir()

Thank You for your post guiguy.
and to all who replies.
much appriciated.