Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
End of file
Message
From
29/12/2004 02:58:18
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00971336
Message ID:
00972833
Views:
15
hi,
i need your help ,how i can use this code under if i have more than one table have the same field name all of them ,need the same operation as..
select 0
    use newdnc1
    select 0
    use newdnc
    SCAN
        SCATTER MEMVAR
        m.tablechar1=NewDnc.Char1
        SELECT NewDnc1   && newdnc2,newdnc3,newdnc4...etc
        SCAN FOR Char1 == m.tablechar1
             GATHER MEMVAR
        ENDSCAN
        SELECT NewDnc
    ENDSCAN
   CLOSE ALL
thanks.
m.qasem

>What VFP You Use to see this error? If You use VFP 6.0 change RecNo("NewDnc") WITH STR(RecNo("NewDnc"))
>
>Mohammed, did You ever Use a DEBUG to see what happens? Open debug, set a BreakPoint on Locate & see WHY it replace only one record, from a distance it is more difficult to see what happens. Change to this code & see what happens:
>
>
>    select 0
>    use newdnc1
>    select 0
>    use newdnc
>    SCAN
>        SCATTER MEMVAR
>        m.tablechar1=NewDnc.Char1
>        SELECT NewDnc1
>        SCAN FOR Char1 == m.tablechar1
>             GATHER MEMVAR
>        ENDSCAN
>        SELECT NewDnc
>    ENDSCAN
>   CLOSE ALL
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform