Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform can only be used within a method
Message
De
29/11/2004 05:32:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00965288
Message ID:
00965349
Vues:
12
Hi Nadya

Just some ideas to try - clutching at straws

- this.cmbTown - is there a "thisform" within its RowSource (e.g. in an SQL statement)?
- does requerying the (combo?) effect the data in your browse page somehow?

Dunno but HTH

Terry

>Hi everybody,
>
>I have a weird behavior in one of my forms. The table is empty in my home environment. I have a pageframe on the form with two pages: Browse page with a grid and Details (Edit) page with one record details. I noticed, when I run the form, I can not switch between the pages, I am trying to click on the Browse page, but it doesn't react.
>
>I have the following code in Edit page Activate:
>
>********************************************************************
>*  Description.......: pageEdit.Activate
>*  Calling Samples...:
>*  Parameter List....:
>*  Created by........: Nadya Nosonovsky 05/25/2000 10:02:36 AM
>*  Modified by.......: Nadya Nosonovsky 06/20/2000 01:27:00 PM
>********************************************************************
>if recno('Camouflage') > 1
>	thisform.cState = Camouflage.state
>	this.cmbTown.requery()
>	this.refresh()
>endif
>
>I added recno condition today in order to solve the aforementioned problem. However, with this condition added I get an error "Thisform can only be used within a method". Without this code the form runs fine. What exactly is the problem? The help doesn't clarify the situation at all.
>
>Thanks a lot in advance.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform