473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How do I declare a global variable: strOperation

I need to know!!!!!!!!
Jul 16 '07 #1
6 1429
hariharanmca
1,977 1GB
I need to know!!!!!!!!

you never explain what you need to know?
Jul 16 '07 #2
lol, declaring a global variable, i know and idiot could figure it out
Jul 16 '07 #3
hariharanmca
1,977 1GB
lol, declaring a global variable, i know and idiot could figure it out
if you just post the question proper, nothing can figur it out Idiotic.

How do I declare a global variable: strOperation
i mean to say, what is the purpose of this (strOperation) variable. This you have to explain.
Jul 16 '07 #4
hariharanmca
1,977 1GB
I need to know!!!!!!!!

Let me assume some variable.

What ever variable you declare it in module like

Expand|Select|Wrap|Line Numbers
  1. Public strSomeVariable As String
You can access this variable allover that project.

If you give

Expand|Select|Wrap|Line Numbers
  1. Public strSomeVariable As String
In a form or class module, you can access it by creating Object and like

Expand|Select|Wrap|Line Numbers
  1. objName.strSomeVariable
If you version is a VB 6 or earlier version
For form module you don’t want to create object. Can use like

Expand|Select|Wrap|Line Numbers
  1. frmName. strSomeVariable
I think this will help you
Jul 16 '07 #5
Mague
137 100+
Let me assume some variable.

What ever variable you declare it in module like

Expand|Select|Wrap|Line Numbers
  1. Public strSomeVariable As String
You can access this variable allover that project.

If you give

Expand|Select|Wrap|Line Numbers
  1. Public strSomeVariable As String
In a form or class module, you can access it by creating Object and like

Expand|Select|Wrap|Line Numbers
  1. objName.strSomeVariable
If you version is a VB 6 or earlier version
For form module you don’t want to create object. Can use like

Expand|Select|Wrap|Line Numbers
  1. frmName. strSomeVariable
I think this will help you
He is right,

I would use Public variable as string
Jul 16 '07 #6
hariharanmca
1,977 1GB
He is right,

I would use Public variable as string
why you are using Public variable as string

we can use any datatype in the front-end....
Jul 16 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: NotGiven | last post by:
I have an file I call using: require_once() In this file I have variables I'd like to use in the calling page and functions called by that page. How can I do this? example:
10
by: Andy Fish | last post by:
Hi, can anybody put forward a sensible argument javascript's behaviour of creating a new global variable whenever I assign to a previously undeclared variable. I can't beleive this is just for...
6
by: David T. Ashley | last post by:
Hi, In my project, I typically declare and define variables in the .H file, i.e. DECMOD_MAIN UINT8 can_message_201_status_global #ifdef MODULE_MAIN = HAS_NEVER_BEEN_RECEIVED #endif ;
6
by: rick | last post by:
Noob problem. I prefer to keep all my scripts in an external '.js' file. I am currently loading the external '.js' file from the header. Problem is I would like to declare a global variable in the...
15
by: Geoff Cox | last post by:
Hello, Can I separately declare and initialize a string array? How and where would I do it in the code below? It was created using Visual C++ 2005 Express Beta 2 ... In C# I would have ...
41
by: Miguel Dias Moura | last post by:
Hello, I am working on an ASP.NET / VB page and I created a variable "query": Sub Page_Load(sender As Object, e As System.EventArgs) Dim query as String = String.Empty ... query =...
8
by: yinglcs | last post by:
Hi, I have the following code: colorIndex = 0; def test(): print colorIndex; This won't work. But it works if i do this:
1
by: Konstantinos Pachopoulos | last post by:
Hi, i had posted earlier for not being able to declare global vars. No i followed the suggestions and created a class, but still the vars do not seem to have a global scope. I have tried pretty...
3
by: MAHMAD337 | last post by:
Hi all, I want to declare a global variable in my report (build in oracle report builder). can any one tell what is the procedure to declare a global variable in oracle report builder. bye;
1
by: yu83thang | last post by:
Hi, May I know how to declare a Class in C++ window application form? Below is my code and error as shown below as well. here is my class declaration: ref class CLoadObj { public:
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.