Field question

Stephen Barncard stephenREVOLUTION at barncard.com
Thu Jul 19 12:41:39 CDT 2007


>When I check the contents of tData, only the last field, field "l" was in
>tData

right now you are just replacing the last contents with the next.
into   = replace what was there
after  = put after
before = put before

>
>How do I correct this?

depends on what you want to do...
If you are appending the data to the var

local tData
put empty into tData
put field "a" & return after tData
put field "b"  & return after tData
put field "c"  & return after tData
put field "d"  & return after tData

you could compact each field into a single line
for decoding later.

local tData
put empty into tData
put URLEncode(field "a") & return after tData
put URLEncode(field "b") & return after tData
put URLEncode(field "c") & return after tData
put URLEncode(field "d") & return after tData


If you want each field available in an array do this

local tDataA

put field "a" into tDataA [a]
put field "b" into tDataA [b]
put field "c" into tDataA [c]
put field "d" into tDataA [d]
put field "e" into tDataA [e]

sqb



>I have tried putting fields into a temporary variable:
>
>put field "a" into tData
>put field "b" into tData
>put field "c" into tData
>put field "d" into tData
>put field "e" into tData
>put field "f" into tData
>put field "g" into tData
>put field "h" into tData
>put field "i" into tData
>put field "j" into tData
>put field "k" into tData
>put field "l" into tData
>
>When I check the contents of tData, only the last field, field "l" was in
>tData
>
>How do I correct this?
>--

-- 


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -






More information about the use-livecode mailing list