|
Criando objetos em Runtime |
Iniciado por Boller, 21,dic. 2021 18:50 - 2 respuestas |
| |
| | | |
|
| |
Miembro registrado 4.521 mensajes |
|
Publicado el 21,diciembre 2021 - 18:50 |
Solução
Procedure CreateCamposRuntime(gNomeRelatorio, gParametersReletario)
OBJ is string
xControl is Control
i,y is int = 0
total is int = StringCount(gParametersReletario,";",IgnoreCase)
OBJ = "SC_AreaPlotagem.STC_TextoX" xControl <- ControlClone(STC_Texto, OBJ) xControl.Width = STC_Texto.Width xControl.X = 30 xControl.Y = 30 xControl.Caption = gNomeRelatorio
LOOP (total) i++ IF i = 1 THEN y = 75 ELSE y+= 35 END OBJ = "SC_AreaPlotagem.EDT_"+ NoSpace(ExtractString(gParametersReletario, i, ";", FromBeginning),sscAll) xControl <- ControlClone(EDT_Texto, OBJ) xControl.Width = EDT_Texto.Width xControl.X = 35 xControl.Y = y xControl.Caption = ExtractString(gParametersReletario, i, ";", FromBeginning) END
-- Adriano José Boller ______________________________________________ Consultor e Representante Oficial da PcSoft no Brasil +55 (41) 99949 1800 adrianoboller@gmail.com skype: adrianoboller http://wxinformatica.com.br/ |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 4.521 mensajes |
|
Publicado el 21,diciembre 2021 - 19:11 |

-- Adriano José Boller ______________________________________________ Consultor e Representante Oficial da PcSoft no Brasil +55 (41) 99949 1800 adrianoboller@gmail.com skype: adrianoboller http://wxinformatica.com.br/ |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 4.521 mensajes |
|
Publicado el 21,diciembre 2021 - 19:13 |

-- Adriano José Boller ______________________________________________ Consultor e Representante Oficial da PcSoft no Brasil +55 (41) 99949 1800 adrianoboller@gmail.com skype: adrianoboller http://wxinformatica.com.br/ |
| |
| |
| | | |
|
| | | | |
| | |
|