Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to search record in buffer?
Message
From
28/10/2003 11:38:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/10/2003 08:20:33
Mike Sontillano
Travellers Life Assurance of the Philipp
Naga, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00842961
Message ID:
00843591
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform