Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function for all
Message
 
À
11/08/1999 04:06:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00252341
Message ID:
00252437
Vues:
6
Justok,

Below is you code fixed so it works with any datatype and the macros are removed.
* at main.prg
procedure flocate
Lparameters pValue, pFieldName
ID EMPTY(pFieldName)
   lFieldName = FIELD(1)  && Take Current Alias first columname
ELSE
   lFieldName = pFieldName
ENDIF

Locate For Upper(lFieldName) = Upper(pValue)

RETURN FOUND()
It is also nice to return a vlaue that tells the caller if anything was found or not.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform