Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm porting an application from FoxPro 2.5, to .net 2003. At many points in the application, I'm translating string to variable. For example:

 

esString1 = "BlowFish"

esString2 = "esString1"

 

print "string 1: " + esstring1

print "string 2: " + esstring2

print "REFERENCE string2:" + &esstring2

esString1 = "Changed"

print "REFERENCE again string2:" + &esstring2

 

--------- Program Output ---------------

 

string1: BlowFish

string2: esString1

REFERENCE string2: BlowFish

REFERENCE again string2: Changed

 

----------------------------------------------

 

Putting "&" in front of any string will cause the program to access the value of that string instead.

 

Does anybody know how this works in Visual Basic .net? If I'm not being clear, please ask to clairify - thanks.

www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
  • *Experts*
Posted

Im not really sure what you are trying to do, both things will print the same thing anyway. You are accessing the value of string, it is the text that is in it.

Sorry If im completely misunderstanding you :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...