Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting ApplyDiffgram error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00914379
Message ID:
00914905
Vues:
8
I've changed the ApplyDiffgram command to use an alias instead of the CA, and also specified keyfield for the XMLAdapter. The ApplyDiffgram is now working, but I'd still like to know what the error applied to. (But I'm leaving in the morning for vacation, so I can't answer any replies for a while.)

>I have a diffgram that's going against a cursoradapter with 38 fields. When I try to ApplyDiffgram, it's giving me a "Function argument value, type or count is invalid". Below is the code I'm using. Is this error from the CA object I'm passing to ApplyDiffgram, or is it a problem with the diffgram itself?
>
>ox = CREATEOBJECT('ca_RV_SETOFSHIPMENTS7')
>WITH ox
>   .Alias = 'vShipments'
>   .DataSource = sqlstringconnect(pcConnectStr)
>   .CursorFill(.T.)
>ENDWITH
>
>oxmlAdapter  = Createobject('XMLADAPTER')
>With oxmlAdapter
>   lcxml = FILETOSTR('temp.txt')
>   .LoadXML(lcxml)
>   * Update the local cursor
>   FOR EACH lotable IN oxmladapter.tables
>      CursorSetProp("Buffering",5,'vShipments')
>      loTable.ApplyDiffgram(,ox)
>   ENDFOR
>Endwith
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform