|
-
Jun 20th, 2008, 02:59 AM
#1
Thread Starter
New Member
global integer?
hello poeple. i'm facin a problem with an integer in two different makro's. here is the case: i define an integer in one makro, the call another and try to use the integer in it. something like this:
sub makro1()
dim kkk as integer
kkk = 5
call makro2
end sub
sub makto2()
selection.typetext text:="something" & kkk
end sub
it doesn't work of course. is there any way to, i don't know, make the kkk a global integer ?
-
Jun 20th, 2008, 03:13 AM
#2
Re: global integer?
Code:
dim kkk as integer
sub makro1()
kkk = 5
call makro2
end sub
sub makto2()
selection.typetext text:="something" & kkk
end sub
-
Jun 20th, 2008, 07:58 AM
#3
Re: global integer?
Wouldn't you want to do: Public kkk As Integer?
-
Jun 20th, 2008, 08:52 AM
#4
Re: global integer?
 Originally Posted by Hack
Wouldn't you want to do: Public kkk As Integer?
Unless it will be used in more than one modules.
-
Jun 20th, 2008, 09:10 AM
#5
Re: global integer?
 Originally Posted by anhn
Unless it will be used in more than one modules.
Good point. For me, using Public is probably more habit than necessity.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|