<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>14 Jul 2015 02:05:00 Z</lastBuildDate><pubDate>14 Jul 2015 02:05:00 Z</pubDate><description>Hi&#13;
I have a number of classes which have structures defined in them. In a procedure I want to be able to access the definition of the structure but I can't get it to work dynamically. The error is "Only object of same class can be assigned to object". There is no specific dynamic structure declaration syntax so I've tried as below and also as 'dynamic object' with the same result. Have I got something wrong or is this just not possible?&#13;
&#13;
David&#13;
&#13;
THIS WORKS: ls_FieldDefs is string d is Définition lPcl_RecStructure is class.Structure // SWITCH ls_Action CASE "ESAL": ls_FieldDefs = "lpcl_RecStructure" OTHER CASE END d = GetDefinition({ls_FieldDefs,indVariable})&#13;
THIS DOESN"T WORK: lpcl_RecStructure is dynamic // SWITCH ls_Action CASE "ESAL": lpcl_RecStructure = new Class.Structure ls_FieldDefs = "lpcl_Recstructure" OTHER CASE END d = GetDefinition({ls_FieldDefs,indVariable})</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53055-wd17-dynamic-structure/read.awp</link><title>WD17] Dynamic Structure</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
