Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Concat String
Message
De
13/11/2001 16:49:47
Casey Easterwood
L.A. Mechanical Solutions Inc.
Los Alamitos, Californie, États-Unis
 
 
À
13/11/2001 16:41:25
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00580991
Message ID:
00581163
Vues:
19
I Have one table that has all the fieldnames listed for all the tables

The FIELDRS is a record set of the fieldnamess in that table

The first for loop converts the recordset into an array

Then what i want the second For loop to do is use that array to insert the fieldnames in the UPDATE Query And Then also use the array to specify the source fields in the same update statement.

For x = 0 to fieldlc
Create Array ---> field(x) = FIELDRS("FIELDS")
FIELDSRS.movenext
Next

For Y = 1 to loopcontrol
UpdateQuery = "UPDATE" & TableName & " " &
For X = 0 to fieldlc
Set VFPRS.fields(field(x)) & "=" & field(x) &
Next
" " &
"WHERE PRIMKEY=" & Y
Response.Write UpdateQuery
'connSQL.execute(UpdateQuery)
VFPRS.movenext
Next
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform