Re: Changing Code Modules, PLEASE HELP ASAP!! PART 2
Brett,
I think your problem is with i. You say you declare it but where? Not
in ReplacecodeInModule. If it is declared some where else as a public
variable then the value of i could be anything. The i in the main
module is local to that module not ReplacecodeInModule.
If it is not a public variable then i would be 0 in ReplacecodeInModule
and the comparison would only be performed for the first value in
myFStr(i=0).
Option Explicit requires that all variable be declared. If i had not
been declared outside of ReplacecodeInModule the compiler would have
complained.
*** Sent via Developersdex
http://www.developersdex.com ***
.
Relevant Pages
- Re: Changing Code Modules, PLEASE HELP ASAP!! PART 2
... It would seem to me you need to loop through myFStr to compare with each ... You say you declare but don't set i. ... is global the compiler would complain about i in ReplacecodeInModule. ... (microsoft.public.excel.programming) - Re: advice on package design
... > for following scope. ... the compiler would have to do ... the extra verbiage required just to declare X. ... Unfortunately this is also untrue in Ada. ... (comp.lang.ada) - Re: Properties
... Is there any reason why this would not work and not simplify the ... Why should I have to declare any variable most of the time? ... The reason you explicitly declare fields used by a property is that the ... compiler needs to know what the code in the property does. ... (microsoft.public.dotnet.languages.csharp) - Re: use of erf intrinsic
... while it is also legal to declare a referenced function ... within the calling functionor even block, a la classic FORTRAN, ... The implementation (compiler) is required to check that references ... If you use K&R1 syntax, the compiler is not required to detect ... (comp.lang.fortran) - Re: Primitive curiosity...
... those types after the compiler has already used the information. ... "dispatch table" or something like that. ... contains the addresses of the primitive subprograms of the type. ... When you declare a type extension, ... (comp.lang.ada) |
|