Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APPEND BLANK from inside a grid to another alias
Message
 
To
30/09/1996 00:05:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00008807
Message ID:
00008809
Views:
33
>I have two grids on my form. One of the field is a listbox having a valid event that based on a certain condition need to add a record in the second grid.
>
>In my valid event code, I change to my second grid alias before doing the APPEND BLANK. The problem is that even if I switch alias, because I am in a grid, the alias changes back to the first grid which forces the APPEND BLANK to add in the first grid instead of the 2nd.
>
>Here's a sample of the code in my valid event of the listbox of the first grid.
>
>IF condition...
> SELECT alias of grid 2
> APPEND BLANK
> REPLACE ...
>ENDIF
>
>The SELECT alias of grid 2 works but before the APPEND BLANK can be executed, the alias is switched back to the alias of the first grid.
>
>Is there a workaround for that?


Try:

APPEND BLANK IN tablealias

HTH
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform