You are not logged in.

kechele

Beginner

  • "kechele" started this thread

Posts: 3

Date of registration: Oct 13th 2009

  • Send private message

1

Thursday, April 1st 2010, 8:42am

use global variables in an another Usercontrol

In a Usercontrol "tab1" I have defined a global variable:
Global clip_str As String = ""
Now in an another Usercontrol "tab2" I want to change "clip_str":
tab1.clip_str = "new content"
but I got an error message "Verwenden Sie Klassennamen für statistische Methoden"
What is wrong in my code?

Thank you.

kechele

Beginner

  • "kechele" started this thread

Posts: 3

Date of registration: Oct 13th 2009

  • Send private message

2

Thursday, April 1st 2010, 9:46am

use global variables in an another Usercontrol

:) I had forgotten the "Static" keyword:
Global Static clip_str As String
Now I can access the variable with
clip_str = "new content"

8)

This post has been edited 1 times, last edit by "kechele" (Apr 1st 2010, 1:05pm)


Rate this thread
WoltLab Burning Board