PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → ExecuteCode in Webdev Server side
ExecuteCode in Webdev Server side
Iniciado por Steve Thompson, 11,sep. 2014 11:50 - 2 respuestas
Publicado el 11,septiembre 2014 - 11:50
Hi all,

This works :

cb_MTN..State = Grayed

This doesn't :

sCode = "cb_MTN..State = Grayed"
ExecuteCode(sCode)

I'm using Webdev 19 - any ideas?

Steve
Publicado el 11,septiembre 2014 - 15:14
Hi Steve


One possible cause:


is cb_MTN declared as DYNAMIC?

if declared as automatic, webdev looks in the code to see if any
property is modified anywhere. If not, it is static (and ..state doesn't
work)

Now, webdev looks everywhere in ITS code, not in a string that you may
or may NOT execute later.

So for any field managed through dynamic compilation, make sure to
declare it in DYNAMIC.


Best regards


--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International

NOUVEAU: WXShowroom.com est disponible : Montrez vos projets !
Plus d'information sur http://fabriceharari.com

On 9/11/2014 3:50 AM, Steve Thompson wrote:
Hi all,

This works :

cb_MTN..State = Grayed

This doesn't :
sCode = "cb_MTN..State = Grayed"
ExecuteCode(sCode)

I'm using Webdev 19 - any ideas?

Steve
Publicado el 11,septiembre 2014 - 17:17
Thank you Fabrice,

You were correct!