Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define a Public dynamic array ?
Message
From
01/06/2009 06:10:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/06/2009 05:50:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01402913
Message ID:
01402923
Views:
77
>>Hi,
>>but I want the array start with 0 element, and I loop the client table if the client fullfill some condition,
>>I will insert the client code into the array. then how to define the array and insert into the array ?
>>
>>
>>
>>PUBLIC ARRAY aClient[0]
>>select client
>>do while not eof()
>>    if substr(Client.clientcode, 1,1)="A"
>>      insert to aClient   <- I don't know how to code it for this part.
>>      
>>    endif
>>    skip 1
>>enddo
>>
>>
>
>Do it right from the start, and use a cursor instead!

But what if I need to pass it between datasessions:)
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
Previous
Reply
Map
View

Click here to load this message in the networking platform