Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>
>>>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
I have never tested it that way, but in one of my forms i sometimes store the record number to a variable
When i issue goto variable later it didn't work for newly added records, and it gaves me an error. For the already existing records it worked.
(I used tablebuffering)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement