Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Records
Message
De
25/05/1999 10:11:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Adding Records
Divers
Thread ID:
00222466
Message ID:
00222466
Vues:
57
Hi everyone:

I have posted a very similiar question to this, but wanted to show the code I am using in my forms to see if there is an error:

Problem:

I have a parent form and a child form. When I fire my child form and attempt to do my assignments, I can only assign one record. I am having problems going any further.

When I click the add button and place my cursor into the textbox to do my next assignment, the values I typed in the first record appear automatically, w/o my typing them.

Example:

In my child form>

Record number One:
id# = 1
codename = Cong_dist
option = 001
label = Broward


Record number Two
id# = 2 && FoxPro is creating a second record here, which is good
codename = Cong_dist && so far so good
option = 001 && *****this appears automatically********
label = Broward &&****this appears automatically*****


If I type over the 001 and Broward in record number two, it only changes the values in the firt record!

I want to display the code I have in my child form and see if I am missing a piece.

A. In the init() of my child form:

lparameters tnvoterId
=seek("votersfile","nfieldid") && parent table
=seek("fielddetail",nfieldid") && child table
set ket to votersfile.nfieldid in fieldetail

B. In the click event of the cmd button on my parent form, which fires the child form:

do form fielddetails with votersfile.nfieldid

C. I have no code in the click() for the add event on my buttonset. My buttonset is the only wizard generated object on all my forms. I do not know, or have not learned how to create my own customs navigation. So, I have pasted buttonsets on all my forms to use for navigation. I know it isn't optimal, but it is all I have at the moment.

Note: My data session in my my parent is private and the data session in my child is default and modal. I have no SET RELATION cmd in place.

If anyone sees any errors in my code or has an idea what is wrong, I would sure appreciate the feedback

TIA
'
Jason
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform