Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing arrays within a class
Message
From
11/08/2000 12:43:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Passing arrays within a class
Miscellaneous
Thread ID:
00404012
Message ID:
00404012
Views:
78
Hi,
I have a method inside a class that will convert a delimited string into an array. This method has three parameters in this order: tcString, tcDelimiter, tcArrayName

I have also array properties inside the same class. However, I have an error when I passed the array property.

Example:
Init Method:
this.ArrayProperty(1)=''
this.DelimitedString ='String1:String2:String3'
this.DelimitedStringToArray(this.DelimitedString,':',@this.ArrayProperty)

The third line will cause an error THIS alias not found. I have resolved this by creating a local temporary array and pass this temporary array instead, then issue an ACOPY().

Is this the case in VFP classes? or am I missing something here?

Ramil 8/11
ramil
~~ learning to stand still
Next
Reply
Map
View

Click here to load this message in the networking platform