Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: joris cools
  Where is joris cools?
 
 Belgium
 joris cools
 Tags
Subject: variable aprinter
Thread ID: 265892 Message ID: 265892 # Views: 27 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: VFP and .NET
Date: Thursday, June 24, 2010 3:12:07 PM         
   


Hey,

I was just wondering.
I can use a variable named 'aprinter' for an array

i fill it, like this:
select * from table1 into array aprinter

in the debugger i can see this variable (wich is expandable cos it has data in it)

now i want to use this data like this:

strTest = aprinter[1,1]

But foxpro complains: 'Function argument value, type or count is invalid'

but the next code works fine:
select cprinter
append from array aprinter

In the help this variable name is NOT in the reserved words
Nor is it the name of a function (according to my help)

If i change the array name to ageprint it works fine

I do know that in the older versions of vfp aprinter is a function but in version 9 is had become aprinterS

Now how come I can't use the way i want to use it

thx

Joris

PS: this code is just to illustrate the issue




COMPLETE THREAD

Tip: click here to scan for Windows Registry Errors and Optimize PC performance
variable aprinter Posted by joris cools @ 6/24/2010 3:12:07 PM
RE: variable aprinter Posted by Stefan Wuebbe @ 6/24/2010 3:28:09 PM
RE: variable aprinter Posted by Cetin Basoz @ 6/24/2010 3:30:54 PM
RE: variable aprinter Posted by Cesar @ 6/24/2010 3:33:07 PM
RE: variable aprinter Posted by joris cools @ 6/24/2010 3:49:30 PM