Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid date message when inputting dates in a grid
Message
 
À
02/05/2000 08:21:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00364777
Message ID:
00365305
Vues:
39
Ok, this is what I have discovered, my dates are fine but everytime I put a code in grid1.column2.text1.interactivechange, I get the invalid date error.

What I trying to do is get the date entered in that column and pass it to an array. I am also checking the date was entered or not as follows:

&&grid1.column2.text1 is renamed as g1.c2.t2
with thisform
.x = recno()
if .x != .z
MESSAGEBOX('Please Re-enter CTO Date', 0, 'Update CTO')
.g1.c2.t2.value = {}
goto .z
.g1.c2.setfocus()
.refresh()
else
if empty(.g1.c2.t2.value)
MESSAGEBOX('Please Re-enter CTO Date', 0, 'Update CTO')
else
.a__gen10[.v,2] = .g1.c2.t2.value
if .z != .hldcount
goto .z+1
.g1.c1.setfocus()
else
.cmdedit.setfocus
endif
endif
endif
endwith

What gives?

Thanks
Nick Patel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform