Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Effect of SET RELATION in forms
Message
De
17/01/2001 13:20:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00464658
Message ID:
00464793
Vues:
15
>>
>>I think that issuing a GOTO RECNO() would re-etablish the relationship for you. You might try that instead of moving off and back to the record.
>

>I thought that worked for existing records.
>But now he is adding a new record, so record number = -1 (or -n if he has created n unsaved items)
>You can't go to a record with a negative number, so this won't work

Sounds as if my testing was imcomplete.
I had tried it in the command window by

setting buffering to 3,
issuing an APPEND BLANK
changing the field
doing GOTO RECNO()

and it worked. Based on what you said, I don't doubt that it won't in different circumstances.

The bigger problem, which I didn't notice (and should have tested) before I posted, is that after all this, the changes had been posted and TABLEREVERT() was no longer available. Since that was the reason for the original post, it looks as if I was wrong on several counts.

Thanks for the lesson...........Rich
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform