Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse wheeling
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040785
Message ID:
01040794
Views:
12
Martin,

The nDirection cannot be both negative and positive at the same time. It's better to use DO CASE...ENDCASE for readability.
DO CASE
CASE nDirection<0
   * first action
   * move container top
CASE nDirection>0
   * second action
   * move container bottom
ENDCASE
>
>If nDirection<0
>   * first action
>   * move container top
>endif
>if nDirection>0
>   * second action
>   * move container bottom
>endif
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform