Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another CursorAdapter Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00892617
Message ID:
00892650
Vues:
18
But why? You can expand Your function parameters:
FUNCTION GetHistoryData(sAlias, sSqlCmd, sUpdatable, sUpdateName)

sUpdatable  = IIF(TYPE("sUpdatable")  # "C","Id, DoneDate", sUpdatable)
sUpdateName = IIF(TYPE("sUpdateName") # "C",""DoneDate History.DoneDate", sUpdateName)

SELECT 0
USE History

oAdapter = CREATEOBJECT("CursorAdapter")

WITH oAdapter

  .Alias = sAlias
  .DataSourceType = "Native"
  .DataSource = ""
  .SelectCmd = sSqlCmd
  .KeyFieldList = "Id"
  .Tables = "History"
  .UpdatableFieldList = sUpdatable
  .UpdateNameList     = sUpdateName

ENDWITH

USE IN History

RETURN
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform