You mean something like this?

<%  
Dim myvariable
myvariable = 1

If myvariable = 1 Then Call MySub(myvariable)

Sub MySub(passedvalue)
  response.write "myvariable is "& passedvalue
End Sub
%>


--- dw_ygrps <[EMAIL PROTECTED]> wrote:

> 
> 
> 
> In ASP VBscript, there does not appear to be a legal way to branch to 
> a function or sub on the same asp page.  
> 
> I know how to use server.transfer to build a web page out of selected 
> parts from small building-block asp files, but in traditional VB 
> there are goto statements etc that allow you to jump to a subroutine 
> and back etc.
> 
> For example:
> If myvariable = 1 then gosub subroutine_25
> 
> What is the asp vbscript command that would do this?
> 
> Thanks,
> Duane
> 
> 
> 
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to