Archive of UserLand's first discussion group, started October 5, 1998.
Re: How to get the value of a table element?
Author: Brian V. Hughes Posted: 9/29/1999; 6:44:18 AM Topic: How to get the value of a table element? Msg #: 11592 (In response to 11586) Prev/Next: 11591 / 11593
My pseudo code is this:on movPass ( tblUsersAdr ) local ( row); for row = 1 to sizeOf( tblUsersAdr^ ) try local ( uName ); uName = row.value; table.move (@uName.personalInfo.Password, @uName.Password);
movPass ( @timesMember.users )
Ok... Here's the actual UserLand code that does what your pseudo code wants to do.
on movePass (tblUserAdr) local (row) for row = 1 to sizeOf (tblUsersAdr^) try table.move (@tblUsersAdr^[row].personalInfo.Password, @tblUsersAdr^[row].Password)
If you wanted to use the uName variable that you have in your pseudo code, it would look something like this:
try local (uName = @tblUsersAdr^[row]) table.move (@uName^.personalInfo.Password, @uName^.Password)
Functionally, these two methods are identical...
There are responses to this message:
- Re: How to get the value of a table element?, Neil McLeish, 9/29/1999; 8:16:04 AM
This page was archived on 6/13/2001; 4:52:52 PM.
© Copyright 1998-2001 UserLand Software, Inc.