Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmaticaly addrow to grid and deleterow from grid
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00714250
Message ID:
00715701
Vues:
43
>meanwhile Ed are using ICQ if yes my number 93291682 we can continiue with this.
>
>i put this code to the form init event
>
>if ! 'sgridtextbox.VCX' $ set('classlib')
>	set classlib to "lib\sgridtextbox" additive
>endif
What VFP version you're using?

In any case, the above code should be:
>if ! 'sgridtextbox.vcx'$ lower(set('classlib'))
>	set classlib to "lib\sgridtextbox" additive
>endif

>
I put lower function.

Because set('classlib') returns string in upper case (test it yourself)
>
>and grid init event code
>
>FOR EACH oColumn IN this.Columns
>   WITH oColumn
>      .RemoveObject('Text1')
>      .AddObject('Text1','SGridTextBox')
>      .CurrentControl='Text1'
>   ENDWITH
>ENDFOR
>
>
>there is no error action but doesn't seems textboxclass actions thats way allowaddnew continiously ...

> .AddObject('Text1','SGridTextBox')

You can change the above line to .NewObject('text1','SGridTextBox','myclasslib.vcx') if you're using VFP version greater than 5. In this case you would not need to set library...

Finally, and it's very important. don't forget to set .text1.visible = .t.

By default all new objects are added invisible.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform