Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to search record in buffer?
Message
De
28/10/2003 11:38:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/10/2003 08:20:33
Mike Sontillano
Travellers Life Assurance of the Philipp
Naga, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00842961
Message ID:
00843591
Vues:
25
>Hi Cetin,
>
>Im sorry if I didn't clarify my reply to you. Yes xbase command.
>Anyway I tried this code and it works:
>
>(thisform.grid1.column1.text1.lostfocus)
>
>LOCAL lcNewSerial
>lcNewSerial=THIS.VALUE
>SELE TABLE1
>INDEXSEEK(lcNewSerial)
>IF FOUND()
> IF RECNO() < 0
> WAIT WIND "found" NOWAIT
> ELSE
> WAIT WIND "not found" NOWAIT
> ENDIF
>ENDIF
>
>
>However, it doesn't work in one-to-many relationship.
>Parent table has (drnumber index)
>child table have (dr_number,serialno indexes)
>
>Can you please help me with this..
>
>Thanks again...
>
>MIke

Mike,
I wouldn't use this.Value but directly alias.fieldname.
LOCAL lcNewSerial
lcNewSerial=myAlias.myField
SELE TABLE1
if INDEXSEEK(lcNewSerial, .f., 'Table1', 'SerialOrderTagName')
  WAIT WIND "found" NOWAIT
ELSE
  WAIT WIND "not found" NOWAIT
ENDIF
I couldn't understand second part of your question.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform