Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Point to the next row of data?
Message
 
 
À
23/01/2007 16:27:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01188332
Message ID:
01188352
Vues:
15
This message has been marked as the solution to the initial question of the thread.
>Hi Sir,
>
>In my application, I have set five rows (2 textboxes, 1 combo box). The user can enter one or more data in the row. If the first row is not empty then the second row will be visible in case the user puts more data. The same with the rest of the rows. They appear if the textbox above them is populated.
>
>I have the btnSave.Click working as putting all these data in the table. Now I need to find a way to retrieve it if present, so the user can update it or delete it.
>
>Please help.
>
>Thanks,
>Sam

Try (just an idea, not tested)
thisform.AddProperty(arrRecords[1])
select myTable
lnI = 0
scan
  scatter name loName memo
  lnI = lnI + 1
  dimension thisform.arrRecords[lnI]
  thisform.arrRecords[lnI] = loName
endscan
Now you have all your records in array and you can set form's textboxes to the appropriate fields from the array.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform