how i can redefine string
-
-
is there some thing called re dim S as string i need to redefine string because the fist time this string work as i want but the second time i face some problem in this parameter so i need to redefine this parameter for each click on button kilany
-
is there some thing called re dim S as string i need to redefine string because the fist time this string work as i want but the second time i face some problem in this parameter so i need to redefine this parameter for each click on button kilany
you may be having scope issues. if your declaring a local variable in vb with "Dim", then taht variable is only valid inside that block. EX sub main() thing() otherthing end sub private sub thing() dim x as string = "Hello" debug.writeline(x) end sub private sub otherthing() debug.writeline(x) 'This line causes an error. end sub the second reference to 'x' causes an error because it was declared within a block. to declare globals within a class or module, use : Private x as string = "Hello" sub main() thing() otherthing() end sub private sub thing() x = "Hello" debug.writeline(x) end sub private sub otherthing() debug.writeline(x & " Again") 'No error this time end sub Globals are just one answer to a scope issue. paramater passage and other techniques exist. you'll learn 'bout 'em sooner or later Good Luck hey...slang is the vernacular for the vernacular...wow