You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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