Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using an array with a grid control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00102613
Message ID:
00103249
Vues:
20
Josh,

Now that I have the grid working with the temporary CURSOR, I am trying to do some formatting and I am encountering some strange behavior. The CURSOR has four fields that are type character, but some of the rows in the grid can also be numeric or date type. When I save from the CURSOR back to my real table, I will do the necessary data conversion. Anyway, I would like to also format user input to reflect the proper data type. If I user keys in a number, I have code in the BeforeRowColChange like this:

REPLACE temp.field1 WITH PADL(RTRIM(temp.field1),13)

This seems to work fine when I run with the debugger on and step through the code, but if I turn debugger off, the replacement is not reflected in the grid? Am I missing something in terms of grid refresh? Or is the an easier way to do what I am attempting?

Kind Regards,

Mat Kennedy
MKennedy@Compuserve.com
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform