Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Effect of SET RELATION in forms
Message
 
To
17/01/2001 13:20:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00464658
Message ID:
00464795
Views:
20
>>>
>>>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform