Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ron Haggin
  Where is Ron Haggin?
 Taylorsville
 Utah - United States
 Ron Haggin
 Tags
Subject: function key problem
Thread ID: 34096 Message ID: 34096 # Views: 2 # Ratings: 0
Version: Visual FoxPro 7 Category: Forms
Date: Monday, December 08, 2003 11:53:52 PM         
   


I am trying to call a method when the user presses a function key. This is the code that I'm using:

init :
on key label F10 thisform.SomeMethod()

SomeMethod :
wait window 'Do some very cool stuff here!'

When I run this code and hit F10 I get a error saying 'thisform can only be used within a method'
Any ideas? The safety of the free world rests on the completion of this project.

ENTIRE THREAD

function key problem Posted by Ron Haggin @ 12/8/2003 11:53:52 PM
RE: function key problem Posted by Jamie Osborn @ 12/9/2003 1:23:42 AM
RE: function key problem Posted by Boudewijn Lutgerink @ 12/9/2003 9:38:30 AM
RE: function key problem Posted by Jamie Osborn @ 12/10/2003 12:14:23 AM
RE: function key problem Posted by Ron Haggin @ 12/10/2003 12:25:07 AM
RE: function key problem Posted by Jamie Osborn @ 12/10/2003 3:04:33 AM
RE: function key problem Posted by Boudewijn Lutgerink @ 12/10/2003 8:04:24 AM
RE: function key problem Posted by Ron Haggin @ 12/9/2003 11:14:48 PM