CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 using stringToRegExp javascript

Print topic Send  topic

Author Message
kabila

Posts: 30
Posted: 03/12/2004, 10:02 PM

I need to convert a string to an expression
e.g. something like eval in javascript

e.g. x=eval("1 +4") will return 5

I am using c# and from the references there is no such command.

However, in common files of Javascript functions, I came across stringToRegExp function that may seem to do the trick.

Am I correct is assuming that? Any other thoughts are welcome
-Sam
View profile  Send private message
peterr


Posts: 5971
Posted: 03/13/2004, 7:52 PM

If you are asking about C# programming/functions then please post to the .NET forum.
Thanks
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
kabila

Posts: 30
Posted: 03/15/2004, 9:14 AM

I was hoping to get some pointers from javascript gurus on this function and use of it.

I have taken your advise and posted on .NET group as well.
Thanks
-Sam
View profile  Send private message
peterr


Posts: 5971
Posted: 03/15/2004, 10:33 PM

I thought that you needed an equivalent of JavaScript's "eval" function for C#.
Otherwise if you already know about "eval" in JavaScript then why would you want to replace it with something else?
Also, try Google, for example: http://www.google.com/search?q=javascript+eval+c%23
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.