Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
End of file
Message
 
To
29/12/2004 04:04:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00971336
Message ID:
00972841
Views:
15
Just put their actual names in array newdncf
DECLARE newdncf[4] && If You have more then 4 declare it
newdncf[1] = "aaaaa"
newdncf[2] = "bbbbb"
newdncf[3] = "ccccc"
newdncf[4] = "ddddd"
....

>hi,
>thank you so much,
>if tables name is deferent names as aaa.dbf,bbbb.dbf,ccc.dbf ...etc
>can be work,
>thanks.
>m.qasem
>
>>
>>DECLARE newdncf[4] && If You have more then 4 declare it
>>newdncf[1] = "NewDnc1"
>>newdncf[2] = "NewDnc2"
>>newdncf[3] = "NewDnc3"
>>newdncf[4] = "NewDnc4"
>>......
>>FOR ndnc = 1 TO ALEN(newdncf,1)
>>    f_name = newdncf[ndnc]
>>    select 0
>>    use (f_name)
>>NEXT
>>select 0
>>use newdnc
>>SCAN
>>    SCATTER MEMVAR
>>    m.tablechar1=NewDnc.Char1
>>    FOR ndnc = 1 TO ALEN(newdncf,1)
>>        f_name = newdncf[ndnc]
>>        select (f_name)
>>        SCAN FOR Char1 == m.tablechar1
>>             GATHER MEMVAR
>>        ENDSCAN
>>    NEXT
>>    SELECT NewDnc
>>ENDSCAN
>>CLOSE ALL
>>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform