Posted: Thu Feb 24, 2005 9:31 am Post subject: DIM or LOCAL
Code:
DeclareSub Foo
Foo
Sub Foo
Dim Long_a AsLong Local Long_b AsLong Local Word_c AsWord
Word_c = Long_a /2' OK: Global Long Var used
Word_c = Long_b /2' ERROR: Local Long Var used
End EndSub
When using the local long variable you got a 242 Error (Source does not match taget var)
Using the global one is ok
Does any one knows why? Bug or feature?
Joined: 17 Jun 2004 Posts: 269 Location: Austria, Hard
Posted: Thu Feb 24, 2005 10:31 am Post subject:
Hi,
Mixing Long and Word variable in one operation isn't supported (yet), when they have different scope (Local, or Global) _________________ regards Josef
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum