Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,851 of 10,840    |
|    Steve Gerrard to Michel Gilbert    |
|    Re: Help with string    |
|    19 Jan 06 18:58:37    |
   
   From: mynamehere@comcast.net   
      
   "Michel Gilbert" wrote in message   
   news:Y7Uzf.9780$924.204859@news20.bellglobal.com...   
   > Hi, i need some help with string. I like to build a string containing   
   > some other variable name and use the variable as if the on inside as been   
   > transfom to there contain:   
   > Exemple   
   >   
   > dim a as string   
   > dim b as integer   
   > dim c as string   
   > dim d as string   
   >   
   > c = "abcd"   
   > d = "defg"   
      
   > if some condition   
   > a = "c = b"   
   > else   
   > a = "d "   
      
   > b become 12 for exemple   
      
   > I like to be able to have the variable a = "abcd = 12"   
   > or = "defg" depending of the if condition.   
      
   I am not sure if I understand, but I think you want   
      
    a = c & " = " & b   
      
   which would make a be "abcd = 12"   
      
      
   Do not put the variables inside of the "quote" marks.   
   Instead, use & to build a string.   
      
    a = c & " = " & b   
      
   means make a be equal to   
    whatever is in c   
    followed by " = "   
    followed by whatever is in b   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca