|
| Inicio → WINDEV 2024 → [WD20} ChangeSourceWindow() error when run inside of dynamic code. |
| [WD20} ChangeSourceWindow() error when run inside of dynamic code. |
| Iniciado por rob, 05,ago. 2015 16:24 - 2 respuestas |
| |
| | | |
|
| |
Miembro registrado 105 mensajes |
|
| Publicado el 05,agosto 2015 - 16:24 |
I've tried this a couple different ways, using ExecuteCode() and Compile() but can't seem to get it to work.
I have a block of dynamic code stored in a string variable, and part of that code calls ChangeSourceWIndow() for one of my internal window frames.
However when the program reaches that code, it errors out with "InternalWIndowName" element unknown.
Is there something special I have to do to make this work? (if it's even possible)
I guess i could resort to creating some global flag variables and changing them inside of the dynamic code instead of calling ChangeSourceWindow() directly. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 05,agosto 2015 - 17:45 |
Hi Rob,
without seeing your dynamic code, it's hard to be sure, but I think I remember that one of he differences between dynamic code and regular one is that you need to have all objects names between quotes (ie "w_WindowName" and not simply windowname, which is an object known only in the editor.
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Already there: WXShowroom.com, WXReplication (open source) Coming soon: WXEDM (open source) More information on http://www.fabriceharari.com
On 8/5/2015 8:24 AM, rob wrote:
I've tried this a couple different ways, using ExecuteCode() and Compile() but can't seem to get it to work.
I have a block of dynamic code stored in a string variable, and part of that code calls ChangeSourceWIndow() for one of my internal window frames.
However when the program reaches that code, it errors out with "InternalWIndowName" element unknown.
Is there something special I have to do to make this work? (if it's even possible)
I guess i could resort to creating some global flag variables and changing them inside of the dynamic code instead of calling ChangeSourceWindow() directly. |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 105 mensajes |
|
| Publicado el 07,agosto 2015 - 23:03 |
Thanks for the info Fabrice. I'll take a look at that. I didn't want to post the code block because it's about 100 lines long. Right now I've worked around it by just making copied code blocks and changing what needs to be changed. But I'd like to use dynamic code for simplicity's sake.
Thanks as always. |
| |
| |
| | | |
|
| | | | |
| | |
|