Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding the AS clause
Message
From
25/03/2008 16:04:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Understanding the AS clause
Miscellaneous
Thread ID:
01305432
Message ID:
01305432
Views:
45
I've a little free time today so I thought I'd try and further my understanding of the Local command. Can someone explain to me in simple terms what are the practical differences in the following code sequences?
* Sequence 1
oExcel = CREATEOBJECT("excel.application")

* Sequence 2
Local oExcel
oExcel = CREATEOBJECT("excel.application")

* Sequence 3
Local oExcel as "excel.application"
oExcel = CREATEOBJECT("excel.application")
I assume in the first case oExcel would be private so it would be visible to subsequent routines, but what about the other 2?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform