Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index built on UDF
Message
De
01/04/2003 23:02:32
Wayne Hamburger
Computer Software Consultants
Poway, Californie, États-Unis
 
 
À
01/04/2003 21:50:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00772792
Message ID:
00772802
Vues:
22
A view won't work as I have 3 related tables, with 2 of the related tables relating directly to the parent table.

I don't understand why my index based on a UDF isn't working. Any ideas. This is the code for one of the stored procedure UDFs:

FUNCTION getcompname
PARAMETERS xcCompanyID
PRIVATE lcCurAlias, lcCompanyID, lcCompany

lcCurAlias = ALIAS()
lcCompanyID = ALLTRIM(xcCompanyID)
lcCompany = " "
IF !EMPTY(lcCompanyID)
IF !USED("FindCompany")
USE Company IN 0 AGAIN ALIAS FindCompany
ENDIF
IF SEEK(lcCompanyID, "FindCompany", "Company")
lcCompany = FindCompany.Name
ENDIF
ENDIF
IF USED("FindCompany")
USE IN FindCompany
ENDIF

SELECT (lcCurAlias)
RETURN lcCompany
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform