Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Control - Append a new record in the last grid row
Message
De
11/11/1998 09:50:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00156026
Message ID:
00156571
Vues:
39
>>>>
>>>>how about
>>>>
>>>>IF RECCOUNT(THIS.RecordSource) = 0
>>>
>>>RECCOUNT ignores SET DELETED status so if I deleted a child record, RECCOUNT will always come back with at least 1.
>>
>>Ok, still trying here...
>>
>>IF EOF(THIS.RecordSource) OR BOF(THIS.RecordSource) OR DELETED(THIS.RecordSource)
>>    GO TOP IN (This.RecordSource)
>>    IF EOF(THIS.RecordSource)
>>       APPEND BLANK IN (THIS.RecordSource)
>>    ENDIF
>>ENDIF
>>
>
>I just realized that if other parent records have child records then this won't work. The only way I can think of that this might work is when the grid for the child records has a RecordSource of a p-view based on the parent record. I'm using a relationship between the parent and child tables. Looks like we need solution#2 :-)
Hi Colin,
Have you checked your mailbox :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform