H homer2002 Registered User. Local time Today, 19:59 Joined Aug 27, 2002 Messages 152 Jan 23, 2003 #1 can I declare a variable and give it a value at the same time e.g. global temp ="hello" as string ??? does anyone know if I can do this.
can I declare a variable and give it a value at the same time e.g. global temp ="hello" as string ??? does anyone know if I can do this.
Robert Dunstan Mr Data Local time Today, 19:59 Joined Jun 22, 2000 Messages 291 Jan 23, 2003 #2 Public myVariable As String = "Hello" You can also declare a constant in the same manner Public Const myVariable As String = "Hello" HTH Rob
Public myVariable As String = "Hello" You can also declare a constant in the same manner Public Const myVariable As String = "Hello" HTH Rob