Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Animated GIF
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00739753
Message ID:
00739963
Views:
11
>Victor
>
>Other case is: use a timer & put it this code per example:
>
>IF thisform.image1.Left=660
> sw=1
>ENDIF
>IF thisform.image1.Left=0
> sw=0
>ENDIF
>IF sw=0
> thisform.image1.Left=thisform.image1.Left+1
>ELSE
> thisform.image1.Left=thisform.image1.Left-1
>endif
>
>And declare the var sw as public in the load.

Sergio:
Could you please surround your code samples within < pre > tags? It makes it much easier to read. Thanks.

Example:
IF thisform.image1.Left=660
   sw=1
ENDIF
IF thisform.image1.Left=0
   sw=0
ENDIF
IF sw=0
   thisform.image1.Left=thisform.image1.Left+1
ELSE
   thisform.image1.Left=thisform.image1.Left-1
endif
Don't you think?


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform