home bbs files messages ]

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,850 of 10,840   
   Michel Gilbert to All   
   Help with string   
   19 Jan 06 17:14:30   
   
   From: mgilbert@shr.cmac.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"   
   b = 1   
      
      
   if some condition   
       a = "c = b"   
   else   
       a = "d "   
      
      
   calcul   
   b = xyz   
      
   b become 12 for exemple   
      
   print a   
      
   I like to be able to have the variable a = "abcd = 12"   
   or  = "defg" depending of the if condition.   
      
   i think the name of this transform is indirection but Im not sure   
      
   Help me I'm dont know what to do about that   
      
   Thank you for your help   
   Mike   
      
   --- 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