Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event before returning value
Message
From
08/02/2012 08:21:15
 
 
To
08/02/2012 05:02:14
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01534806
Message ID:
01534841
Views:
50
>Hello Fabio
>
>Thanks for your reply, is exactly what i need, also i have a dought about how i use your code on my actual code.
>Your Code
>column_supplier.DynamicCurrentControl("IIF(HideCondition,'','text1')")
>
>My Code is:
>
>local MyForm
>** por cada ecrã (form) que esteja aberto na aplicação
>for each MyForm in _screen.Forms
>
>** Se se tratar do ecrã de BROWLIST de Movimentos de Stocks
>if MyForm.name="BROWLIST"
>
> *!*IF MYFORM.Grid1.Column7.HEADER1.CAPTION = "Nome"
>
> MYFORM.GRID1.COLUMN7.VISIBLE = .f.
> *!*endif
>ENDIF
>next MyForm
>
>Could you replace in your code what i need to write in :
>column_supplier (How to refer this column)
>Hide condition : this code could work ( IIF (MYFORM.Grid1.Column7.HEADER1.CAPTION = "Nome" = .T.,'','Text1'))
>and finally Text1
>
>Many thanks Fabio

My code refers to a condition with RecordSource's fields data,
you code set a all the column to hide if the Header Caption is equal to a value.
MYFORM.GRID1.COLUMN7.DynamicCurrentControl(...)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform