Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does ASCAN() compare object?
Message
De
25/12/1999 11:36:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/12/1999 11:24:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00308548
Message ID:
00308558
Vues:
23
>Hi,
> How about compare 2 or more dimension array?
>
>Thank you


Then code would slightly change :
lparameters taArray, toObject
for ix = 1 to alen(taArray,1)
 for jx = 1 to alen(taArray,2)
  if taArray[ix,jx] ...
      return ix*jx
Though this is not mandatory to do it this way, since FP processes 2 dim. arrays as if it was 1 dimensional easily. I just wanted to be warned when you hit situations it catches you. ie:
select field1, field2 from .. into array myArray
appe from myArray
dimension myarray[3]
myArray = "test"
appe from myArray

Although this doesn't refer to your case it's a sample showing 2 dimensional arrays are sometimes needed for a correct behaviour. At the moment a good example doesn't come to mind. Just whenever you see a "invalid subscript.." keep this in mind as a cause.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform