Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Way to te if changing rows in beforerowcolumnchange?
Message
From
08/10/1998 08:42:26
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00144778
Message ID:
00144966
Views:
26
>>>how to tell if you are changing rows in beforerowcolumnchange? have a way that is working, but wonder what others are using?
>>>
>>>thanks
>>>
>>>brenda
>
>>Usually, it's checked in AfterRowColumnChange event:
>>***Grid.BeforeRowColumnChange
>>Thisform.Gridrecno=recno("curGridsource")
>>***Grid.AfterRowColumnChange
>>IF Thisform.Gridrecnorecno("curGridsource")
>>*** this is new row
>>ENDIF
>
>recno has not changed to new row in beforerowcolumnchange(brcc). want to do row level validation. want to validate before letting the the recno change. and prohibit it from changing by settingn nodefault if not pass the edits.
>
>thanks - brenda

You can still do all this if you use cursor, i.e. you check that row changed in arcc, validate cursor record against table record and either save to table or revert the cursor. Cursor/grid record pointer also can be restored back.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform