Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evalaute / & / ()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00717492
Message ID:
00717511
Vues:
26
>Hi,
>
>I am trying to use save the current settings of my grid. I have a variable is a string with the value:
>
>temp = "thisform.MyGrid.Column(1).width
>
>I am trying to save the current widths in an array so that I can re-assign them later.
>The code looks like:
>
> Dimension Colwidth(20)
> colwidth(1) = evaluate(temp)
>
>But evaluate(temp) does not work. How can I assign the column width to the array?
oGrid = thisform.MyGrid
nColcount = oGrid.ColumnCount
i = 0
DECLARE colwidth[1]
FOR EACH oColumn IN oGrid.Columns
   i=i+1
   DECLARE colwidth[i]
   colwidth[i] = oColumn.Width
ENDFOR
oGrid = NULL
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform