Daniel
Thu Nov 03 08:06:01 CST 2005
Thank you Bob! The article has eluminated me a great deal on this subject.
Like they say: "you learn something new every day!"
As for the output, there is none! Blank. I test the variable in the main
and it is properly populated. But when I test it in the onclick sub it is
empty? I have, for now, explicitly define the variable in the onclick sub,
but still want to fix this issue!!!
Seperate question.... Is there a way to get all the reserved names for Vbs
or Vba?
Could you give me a simple example of an HTA with an textbox and button that
once clicked passes 2 variables to a sub?!
Thank you for your help! I'm slowly getting there (I think).
Daniel
"Bob Barrows [MVP]" wrote:
> Daniel wrote:
> > I tried it and the variable is empty when transfered to the sub (I
> > verified, it is populated in the main sub...just no getting
> > transfered properly)? I did stop getting an error though.
>
>
> Show us the result of
> Response.Write UserInputHTML
>
> >
> > Besides which, I thought that paranthesis were required when refering
> > to a sub? I'm confused.
> >
>
> Why are you confused? The error went away when you removed the parentheses
> ....
>
> Read the article I linked to more closely. Read it 10 times until you
> understand it
>
> > Anymore advise I can try.
> >
> >
> >
> >
> > "Bob Barrows [MVP]" wrote:
> >
> >> Daniel wrote:
> >>> Good afternoon,
> >>>
> >>> I have the following entry as part of an HTA:
> >>>
> >>> UserInputHTML = UserInputHTML & "<select size=" & chr(34) & "1" &
> >>> chr(34) & " name=" & chr(34) & "GrpListing" & chr(34) & "
> >>> onChange=" & chr(34) & "EnumGrpMbr(GrpListing.Value , strComputer)"
> >>> & chr(34) & ">" & vbCrLf
> >>>
> >>> However, this generates an error "Cannot use parenthesis when
> >>> calling
> >>> a Sub". How can I fix this. I have tried different things but have
> >>> not managed to get it functional. The problem to my knowledge is
> >>> with the "EnumGrpMbr(GrpListing.Value , strComputer)" . When I have
> >>> only 1 variable to transfer to my sub it works fine, but when I
> >>> tried to send 2 it gives me this error. What is the proper synthax?
> >>>
> >> The error is pretty clear-cut: remove the parentheses:
> >> "EnumGrpMbr GrpListing.Value , strComputer"
> >>
> >> See:
> >>
http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx
>
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
>
>