"Execute" in VBscript 5 Beta2 
Author Message
 "Execute" in VBscript 5 Beta2

Does anyone know if the new "Execute" command will evaluate Session
variables.

What I am trying to do is return a string from a DB that is preformated
with Text and Session Variables:

For example:

'Value stored in DB is ["Bill lives in" & Session("Province")] No brackets

I want to run the code:
 strMessage = DBrecordset("Text").Value
 Execute strMessage
 Response.Write strMessage

I am hoping to get ["Bill lives in Alberta"] which I can pass back to the
ASP page. If this works that I don't have to write a String Parser in ASP
to look for Tags and fill the tags will Values.

Can anyone help?

Thanks

Leo



Tue, 15 May 2001 03:00:00 GMT  
 "Execute" in VBscript 5 Beta2
If you have the scripting engine on the server you can do this.
Quote:

>Does anyone know if the new "Execute" command will evaluate Session
>variables.

>What I am trying to do is return a string from a DB that is preformated
>with Text and Session Variables:

>For example:

>'Value stored in DB is ["Bill lives in" & Session("Province")] No brackets

>I want to run the code:
> strMessage = DBrecordset("Text").Value
> Execute strMessage
> Response.Write strMessage

>I am hoping to get ["Bill lives in Alberta"] which I can pass back to the
>ASP page. If this works that I don't have to write a String Parser in ASP
>to look for Tags and fill the tags will Values.

>Can anyone help?

>Thanks

>Leo



Wed, 16 May 2001 03:00:00 GMT  
 "Execute" in VBscript 5 Beta2
Have you tried

strMessage = Eval(DBrecordset("Text"))
Execute strMessage ' which may now be unnecessary

Quote:
>Does anyone know if the new "Execute" command will evaluate Session
>variables.
>'Value stored in DB is ["Bill lives in" & Session("Province")] No brackets

>I want to run the code:
> strMessage = DBrecordset("Text").Value
> Execute strMessage
> Response.Write strMessage



Thu, 17 May 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. "Execute" in VBscript 5 Beta2

2. "Execute" in VBscript 5 Beta2

3. executing "dynamically created" scripts

4. error in Server.CreateObject("ASPExec.Execute")

5. "execute as" within a script

6. inet control "Still executing last request"

7. Disabling "BACK"/"FORWARD" buttons

8. CreateObject("Excel","//server"), MsgBox output

9. Problem With "window.showmodaldialog("")"

10. Disabling "BACK"/"FORWARD" buttons

11. How to Replace("String Irregular # of space", "?", "")

12. ADO querry using "ADsDSOObject" in VBScript

 

 
Powered by phpBB® Forum Software