Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array not being recognized
Message
From
26/12/2000 12:39:48
 
 
To
24/12/2000 16:44:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00456704
Message ID:
00456871
Views:
28
>>Using VFP 6 SP4, I have an array, aErrors, in a class and when I use the ACOPY() command in a method of that class, I'm getting the error message: 'AERRORS() is not an Array':
>>
>>DEFINE CLASS MyClass AS CUSTOM
>> aErrors[1,1] = .F.
>>
>> PROCEDURE MyMethod
>> lnCount = AERROR(laError)
>> IF lnCount > 0
>> *: Offending line of code!!!!!!
>> ACOPY(laError,THIS.aErrors)
>> ENDIF
>> ENDPROC
>>ENDDEFINE
>>
>>Thanks,
>>
>>Dan
>
>Dan,
>Add dimension :
>
>
DEFINE CLASS MyClass AS CUSTOM
>   dimension aErrors[1,1]
Cetin

Thank you Cetin, that will work.

Guess I've been away from VFP and into VB way too long LOL.

Dan
Previous
Reply
Map
View

Click here to load this message in the networking platform