PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
[WD7.5] Structure data type
[WD7.5] Structure data type
Started by Raimund Schuldhaus, Jul., 30 2003 11:11 AM - 1 reply
Connect yourself…
Raimund Schuldhaus
#1
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
Report
0
0
Peter van Vuuren
#2
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
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text