Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Problem
Message
From
09/02/2010 10:13:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/02/2010 10:05:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01448317
Message ID:
01448360
Views:
59
>Oh, sir Cetin thanks, your codes work fine, I need some guidelines
>
>I want want to validata sno+code then what will be the changes in your codes
>
>select count(*) from subjects where sno=this.value and recno() != m.rec into array x
>
>The grid should accept Following data
>1--VB
>1--VFP
>
>and it should not accept this data
>1--VB
>1--VB
>
>Validation on sno+code

That is not my code. I wouldn't use recno() in an SQL. Probably you are thinking your or someone else's code is mine. What I suggested was:
SELECT COUNT(*) FROM subjects where sno = this.Value  into ARRAY cct
With that one it would be:
sno = subjects.sno
code = subjects.code

SELECT COUNT(*) FROM subjects where sno = m.sno and code = m.code into ARRAY cct
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
Reply
Map
View

Click here to load this message in the networking platform