Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correct
Message
From
07/10/2011 08:16:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/10/2011 16:00:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01525797
Message ID:
01525846
Views:
55
Once more, "code does not work" is not a clear description of the problem. If you get an error message, you should say what is the error message. If the code doesn't do what you expect it to do, you should explain what you expect it to do, and how it fails (i.e., what does the code do that is different from your expectations).

>hi all,
>
>i need help to correct this code,
>i try to use this code not work
>
>
>CLOSE ALL
> Local lnOffice
>
>USE salah2
>SELECT DISTINCT no from salah2 INTO CURSOR junk
>
>SCAN
> lnoffice = junk.no
>.
>.
>
>endscan
>
>
>
>
>i need to correct this code with another way
>
>CLOSE ALL
>USE salah2
>SET FILTER TO no=20&&lnoffice = junk.no
>COUNT TO s
>*brow
>SELECT DISTINCT no,dept  FROM salah2 WHERE no=20  INTO CURSOR mycur
>*brow
>m.dept=dept
>m.no=no
>*? dept,no
>COUNT TO k
>*? k, s,dept,no
>
> USE mytable
> APPEND BLANK
> replace no WITH m.no
> replace nam WITH m.dept
> 
> replace dis WITH k
> replace all WITH s
> *****************************************************************
>CLOSE ALL
>USE salah2
>SET FILTER TO no=42
>COUNT TO s
>brow
>SELECT DISTINCT no,dept  FROM salah2 WHERE no=42  INTO CURSOR mycur
>brow
>m.dept=dept
>m.no=no
>*? dept,no
>COUNT TO k
>*? k, s,dept,no
> USE mytable
> APPEND BLANK
> replace no WITH m.no
> replace nam WITH m.dept
> 
> replace dis WITH k
> replace all WITH s
>***********************
>CLOSE ALL
>USE salah2
>SET FILTER TO no=...etc
>.
>.
>.
>
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform