Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing and Receiving Array

Status
Not open for further replies.

MarvinR

Programmer
Oct 29, 2001
37
HK
The following programs work fine in command window,
but it makes error when complie; the complier doesn't
know VV is an array.

Please tell me what's wrong.


*-------------------- AA.prg --------*
DIMENSION GG(2,3)

GG(1,1) = 'X'
GG(2,3) = 'Y'
=BB(@GG)



*-------------------- BB.prg --------*
LPARAMETERS VV

? VV(1,1)
? VV(2,3)


 
LPARAMETERS VV
EXTERNAL ARRAY VV

? VV(1,1)
? VV(2,3)


Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
FYI: The compiler have given the error, but if you ignore it, it will all work fine... its just the project manager can't tell that the parameter is supposed to be an array since parameters are not typed in VFP, so it issues the warning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top