Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem in grid
Message
 
To
28/01/2007 14:15:35
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01189922
Message ID:
01189933
Views:
10
This message has been marked as the solution to the initial question of the thread.
That works for me:
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN


    **************************************************
*-- Form:         form1 (c:\program files\microsoft visual foxpro 9\test.scx)
*-- ParentClass:  form
*-- BaseClass:    form
*-- Time Stamp:   01/28/07 09:20:01 PM
*
DEFINE CLASS form1 AS form


    Top = 6
    Left = 89
    DoCreate = .T.
    Caption = "Form1"
    Name = "Form1"


    ADD OBJECT grid1 AS grid WITH ;
        Height = 214, ;
        Left = 12, ;
        Top = 13, ;
        Width = 326, ;
        Name = "Grid1"


    PROCEDURE Load
        CREATE CURSOR crsTest (Fld1 Int, Fld2 C(20))
        FOR asd = 1 TO 20
            INSERT INTO crsTest VALUES (asd, REPLICATE([A],asd))
        NEXT
        GO TOP
    ENDPROC


    PROCEDURE Init
        thisform.Grid1.Column2.DynamicAlignment = [IIF(Fld1%2==0,1,0)]
        thisform.Grid1.refresh()
    ENDPROC


ENDDEFINE
*
*-- EndDefine: form1
**************************************************
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform