Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using On Key Label
Message
From
29/06/2001 04:19:48
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
 
To
29/06/2001 03:42:33
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00525060
Message ID:
00525069
Views:
21
Oops, typo, should be:
on key label 0 MyFunction("0")
on key label 1 MyFunction("1")
.
.
.
on key label Z MyFunction("Z")
>Hello everyone,
>
>I have a procedure to be run when using press the keyboard, my code is like:
>
>on key label 0 MyFunction("0")
>on key label 0 MyFunction("1")
>.
>.
>.
>on key label 0 MyFunction("Z")
>
>of course I dont want to repeat the code 36 times, so I tried this:
>
>for-loop(i)
>  Chk=transform(i)
>  on key label &Chk MyFunction("&Chk")
>endfor
>
>
>but there is syntax error with it, is it possible to do it in a simpler form? or must I repeat the code 36 times?
>
>Thanks a lot!
error(503): file structure failure, signature file corrupted.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform