Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid displaying and debugger disagree
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00926578
Message ID:
00926607
Vues:
19
Thank you!
That worked!

Rick

>>I have a VFP form with a one row grid on it. The grid displays the information for the "current" record being processed... I also have VCR navigation buttons to get to First/Last/Next/Previous.
>>One of the fields displayed in the grid is a DateTime field.
>>I have a button on the form which puts the current DateTime into the field, if it's currently empty.
>>
>>When I come into the form the grid accurately displays all the information.
>>If I click my button and put the current DateTime into the field, the grid still accurately displays all the information... it displays the current DateTime.
>>
>>If I then use the navigation buttons to go to the next record... (we'll assume for the moment that the DateTime field of this new record should be empty)... the grid accurately displays all the information.
>>
>>My problem comes in on the click event of my button.
>>If I click my button to put the current DateTime into the field, even tho the grid still accurately displays that there is no pre-existing value in the DateTime field... the code in the click event thinks the grid DateTime field has the contents of the previous record.
>>
>>The code in question is:
>>
>>ThisForm.gridOrderItems.colClosed.txtClosed.Value = ;
>>	IIF( EMPTY(ThisForm.gridOrderItems.colClosed.txtClosed.Value), DATETIME(), {})
>>
>>
>>Any ideas???
>>TIA,
>>Rick
>
>Hi Rick,
>
>I don't think, you should manipulate txtClosed.value In my opinion, you should always deal with the table (view), which grid is based on. E.g. it would be replace Closed with datetime()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform