Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local array won't work
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00487664
Message ID:
00488259
Vues:
8
>>I have a method to look for tables saved buy certain users and create a SQL array.
>>
>>LOCAL ARRAY aHold(1)
>>SELECT * ;
>>FROM &tcTable ;
>>INTO ARRAY aHold ;
>>WHERE !lUploaded AND cUserName = cCurUser
>>
>>This works in the dev envir but not in the exe. Got any ideas?
>>
>>Thanks for the help
>
>Try dimensioning the array before the SQL Select statement. Size doesn't matter.

...and you may start believing it if enough women tell you...

It is important to dimension the array as a two-dimensional construct if you want to have local scoping - it's the two dimensional aspect rather than the size of the dimension. Trying:

LOCAL aHold[1,1]

might help. Of course, if the number of elements created by the query exceeds 65,000, VFP will give you the lovely 'Too many variables' error (# elements = #rows x #columns, but you knew that...)

See, it's possible to be too big...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform