Hi!
I use this code to create a menu by programm, it display me "Syntax error",how can I correct it?
[Set filter to alltrim(profil)="AGENT"
Set order to xsitem
Go top
j=1,i=1,m=space(6)
Scan while !eof( )
If item =space (6)
Define PAD MAINTFORM_ITEMS OF _MSYSMENU PROMPT tree.nom
COLOR SCHEME 3;
On PAD MAINTFORM_ITEMS OF _MSYSMENU ACTIVATE POPUP tree.nom
N=tree.nom
Define POPUP N MARGIN RELATIVE COLOR SCHEME 4
m=tree.sitem
j=j+1
Endif
If tree.nom=m
h=alltrim(str(i))
Define BAR i OF j PROMPT tree.nom
Endif
i=i+1
Skip
Endscan]
Thanks for your attention and your help.
I use this code to create a menu by programm, it display me "Syntax error",how can I correct it?
[Set filter to alltrim(profil)="AGENT"
Set order to xsitem
Go top
j=1,i=1,m=space(6)
Scan while !eof( )
If item =space (6)
Define PAD MAINTFORM_ITEMS OF _MSYSMENU PROMPT tree.nom
COLOR SCHEME 3;
On PAD MAINTFORM_ITEMS OF _MSYSMENU ACTIVATE POPUP tree.nom
N=tree.nom
Define POPUP N MARGIN RELATIVE COLOR SCHEME 4
m=tree.sitem
j=j+1
Endif
If tree.nom=m
h=alltrim(str(i))
Define BAR i OF j PROMPT tree.nom
Endif
i=i+1
Skip
Endscan]
Thanks for your attention and your help.