PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → [7.5] getting control in window
[7.5] getting control in window
Iniciado por Gerard van Woudenberg, fev., 16 2004 5:24 PM - 5 respostas
Publicado em fevereiro, 16 2004 - 5:24 PM
hallo guys,
I thought i can get a hold of a control with the following syntax:
windowname = Verzamel_Maand
controlname = Jaar
windowname.controlname..value // asking the value of the control
The situation is that the Window is open, the control is just an edit control. Both the window and the control work fine in the project. However i have put a button in the window which calls a global procedure, I then get the error:
Error in Click on Button1 process, line 2.
Control unknown: Verzamel_Maand.Jaar
**********************************************
Technical Information
Project : Helpdesk Douane
Dump error of module <7.50Fzk>.
- WL Call:
Processing , line <2>, thread <0>
- Level: fatal error (EL_FATAL)
- Error Code: 1017
- WD55 Error Code: 0
- No system error code
- No system error message
- What happened?
Control unknown: Verzamel_Maand.Jaar.
- No debug information
- No attached information
- Identifier in .err: 1017
Does somebody have some sort of explanation????
Thanks


Our homebase
Publicado em fevereiro, 16 2004 - 5:35 PM
I thought i can get a hold of a control with the following syntax:
windowname = Verzamel_Maand
controlname = Jaar
windowname.controlname..value // asking the value of the control

This is the way to go: (Use of Indirection)
ControlValue={windowname+"."+controlname}..value
OR
ControlValue={windowname+"."+controlname}
Cheers,
Peter
Publicado em fevereiro, 16 2004 - 5:37 PM
This is the way to go: (Use of Indirection)
ControlValue={windowname+"."+controlname}..value
OR
ControlValue={windowname+"."+controlname}

Addendum:
For better performances it is best to indicate the indirection type:
ControlValue={windowname+"."+controlname, indControl}..value
OR
ControlValue={windowname+"."+controlname, indControl}
Cheers again,
Peter
Publicado em fevereiro, 16 2004 - 5:41 PM
I thought i can get a hold of a control with the following syntax:
windowname = Verzamel_Maand
controlname = Jaar
windowname.controlname..value // asking the value of the control
This is the way to go: (Use of Indirection)

ControlValue={windowname+"."+controlname}..value
OR
ControlValue={windowname+"."+controlname}
Cheers,
Peter

Hi !
I don't think the matter is indirection way to call...
It will only be possible only if window Verzamel_Maand is opened !
Else, WinDev cannot get the content of a unexisting DC.
As you call it in a global function, i assume it's also from another window... and Verzamel_Maand isn't opened...
Regards
R&B
Publicado em fevereiro, 17 2004 - 8:34 AM
I thought i can get a hold of a control with the following syntax:
windowname = Verzamel_Maand
controlname = Jaar
windowname.controlname..value // asking the value of the control
This is the way to go: (Use of Indirection)

ControlValue={windowname+"."+controlname}..value
OR
ControlValue={windowname+"."+controlname}
Cheers,
Peter
Publicado em fevereiro, 17 2004 - 8:35 AM
Hi Romuald,
The window is opened.
Thanks, Gerard van Woudenberg
I thought i can get a hold of a control with the following syntax:
windowname = Verzamel_Maand
controlname = Jaar
windowname.controlname..value // asking the value of the control
This is the way to go: (Use of Indirection)

ControlValue={windowname+"."+controlname}..value
OR
ControlValue={windowname+"."+controlname}
Cheers,
Peter
Hi !

I don't think the matter is indirection way to call...
It will only be possible only if window Verzamel_Maand is opened !
Else, WinDev cannot get the content of a unexisting DC.
As you call it in a global function, i assume it's also from another window... and Verzamel_Maand isn't opened...
Regards
R&B