Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty grid
Message
De
04/02/2006 08:02:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/02/2006 03:44:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01093647
Message ID:
01093661
Vues:
18
Did you open a table, or create a cursor, with the desired alias, for your grid? For example:
* Form.Load()
create cursor GrdCursor (...)
By the way, you don't usually need a variable for an alias; the alias itself is a "variable" that points to a table or cursor. You can safely hardcode the alias name, without using a variable - and thus simplify your code a little.

>hi all,
>i try to let mygrid empty , when i need to insert new data at my grid
>via this code under
>
>i get error message alias 'grdcursor'is not found,
>
>mytablename is table1.
>
>
>
>
>&&at my form--> event activate
>thisform.Grid1.RecordSource = "grdCursor"
>thisform.Grid1.Refresh()
>
>
>
>
>&&at mytext--->event keypress
>old_alias = ALIAS()
>flag_use = .f.
>IF .NOT. USED("Table1")
>   SELECT 0
>   USE table1
>   flag_use = .t.
>ENDIF
>-------------------------------
>          GATHER MEMVAR
>          grdTable = thisform.Grid1.RecordSource
> SKIP IN (grdTable)&& error message  alias 'grdcursor'is not found
>    IF EOF()
>       SKIP -1 IN (grdTable)
>    ENDIF
>
>
>thanks.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform