Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Variable evaluation

Variable evaluation

Scheduled Pinned Locked Moved Visual Basic
csharptestingbeta-testingquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LC Chan
    wrote on last edited by
    #1

    Hi, I would like to perform some run-time coding such as: s1 = "testing" s2 = "s1" s3 = evaluate(s2) Then, s3 will become "testing". Is it possible to do this in VB.NET or VB6? Many thanks, Wilfred

    D 1 Reply Last reply
    0
    • L LC Chan

      Hi, I would like to perform some run-time coding such as: s1 = "testing" s2 = "s1" s3 = evaluate(s2) Then, s3 will become "testing". Is it possible to do this in VB.NET or VB6? Many thanks, Wilfred

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      If your attempting to do what I think your are, the short answer is no. During the debugging session, most changes you make while the code is running will cause your app to restart. You'll have to run your app again in order to get your app back to the point where you made the changes. If your talking about writing your own language interpreter, sort of like your own version of VB, then you would have to research expression evaluation. You could start with Runtime Compiled Symbolic Expressions[^] here on CodeProject. It's written in C#, but is can be converted to VB.NET. You might check out Exploring the Microsoft Script Control [^] on MSDN. This article has some root into what you might be looking at doing. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups