Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't get started
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00118761
Message ID:
00118769
Vues:
16
>I'm still trying to create my first form & am having lots of fundamental problems.
>
>1) In a "Save" command button, I have the code =TABLEUPDATE()
>I then added the line APPEND BLANK. When I didn't have this line, I always wrote the data to the first record. With the append blank line, I add an extra blank record and don't overwrite the first record. I don't understand what's happening.

Is the append blank before or after the tableupdate?
>
>2) I have created an index & it's listed in the data environment but when I do a browse, the records are not in index order. Why?
>

You have to make this the controlling index. SET ORDER to that index or in the table in the data environment look for the order property.

>3) When the form opens, I see the values of the 1st record in all the text boxes. How do I have spaces as values? Also, after I write a record to the table, I want spaces as values. In Clipper, I had memory variables that were initialized as spaces or zeros. How do I do this in VFP?

You are looking at data in the current record...you have to move your record pointer to see different data...to add a new blank record, do your append blank, which will add a blank record and move the record pointer to this new record...you could do this in the form's init event I suppose (if that is the behaviour you want)...

>
>Thanks for the help.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform