Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform
Message
De
30/10/2003 10:24:13
 
 
À
30/10/2003 10:16:06
John Marrone
Bloodstock Research Inc.
Lexington, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00844515
Message ID:
00844525
Vues:
26
>Hi
> Well now I got the screen resolution and I put this code in my load event of my form. I get the error unknown member grdEntries. grdEntries is the name of my grid. After I typed thisform intellasense popup and I selected grdEntries from the list so the form knows the grid is there or at least intellasense knows. I have tried this but that is really for controls but it doesn't work either, which I knew it wouldn't. Here is the code:
>
>IF glb.screensize = 1792
> thisform.grdEntries.FontSize = 9
> thisform.grdRaces.FontSize = 9
>ENDIF
>IF glb.screensize = 1400
> thisform.grdEntries.FontSize = 8
> thisform.grdRaces.FontSize = 8
>ENDIF
>
>Also does VFP not have an ElesIf statment.
>
>And 1 more question what are the tags to use when you put code in these messages. Thanks

John,


(1)
Move the code to the form.init()

The form objects do not exist at the time the form loads

See Event firing sequence in the help file

(2) use the case
do case
case  glb.screensize = 1792
    thisform.grdEntries.SetAll('FontSize', 9)
    thisform.grdRaces.SetAll('FontSize', 9)

case  glb.screensize = 1400
    thisform.grdEntries.SetAll('FontSize', 8)
    thisform.grdRaces.SetAll('FontSize', 8)

endcase
(3)
put tags < PRE > at the begginning and < /PRE > at the end (without the spaces)
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform