|
PROFESSIONAL NEWSGROUPS WINDEV, WEBDEV and WINDEV Mobile |
| | | | | |
[WD7.5] Structure data type |
Started by rschuldhaus, Jul., 30 2003 11:11 AM - 1 reply |
| |
| | | |
|
| |
Posted on July, 30 2003 - 11:11 AM |
Hi, Is there a way to pass different variables of type STRUCTURE to a procedure and then access them in a generic manner? Eg. strucTest1 is structure nTest1 is int sTest2 is string END strucTest2 is structure sTest1 is string sTest2 is string sTest3 is string sTest4 is string END s1 is strucTest1 s2 is strucTest2 DoIt(s1) DoIt(s2) And in "DoIt" I want now enumerate the number of passed elements and have access to them. Passing a variable of type STRUCTURE isn't the problem, the problem is the generic access. Thanks Raimund
http://www.invitec.com |
| |
| |
| | | |
|
| | |
| |
Posted on August, 01 2003 - 2:06 PM |
Hi Raimund,
Is there a way to pass different variables of type STRUCTURE to a procedure and then access them in a generic manner? Eg. strucTest1 is structure nTest1 is int sTest2 is string END strucTest2 is structure sTest1 is string sTest2 is string sTest3 is string sTest4 is string END s1 is strucTest1 s2 is strucTest2 DoIt(s1) DoIt(s2) And in "DoIt" I want now enumerate the number of passed elements and have access to them. Passing a variable of type STRUCTURE isn't the problem, the problem is the generic access. -- Don't think it is possible to find the members of a structure in a generic way. Peter
http://www.xs4all.nl/~petervu |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|