General information
Category:
COM/DCOM and OLE Automation
To expand on that, FoxPro reserves the first 10 letters of the alphabet for work areas. The letter m is reserved to explicitly reference memory variables. Therefore objects cannot be named a-j or m. In addition it is bad programming practice to use single letter names except in testing.
Glenn
>I think the problem is that you are useing 'a' as a variable and confusing VFP. VFP reserves a as a workarea.
>
>If you do exactly the same code using, for example, oSheet instead of 'a', you should see the problem go away.
>
>Alan
>
>>I've created an object
>>a= createobject('excel.sheet')
>>When I tryed to reference a instance variable or a method:
>>a.name= 'aaa'
>>the system shows me a message: 'name' variable is not found
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only