Sytanctically, it's perfect. However, if the text returned is an empty
string(caused at times during transfer for reasons inexplicable by me),
the fields will then become empty too. So you probably would need to do
this...
on exitFrame me
if netDone(netID) then
if netError(netID) = "OK" then
-- Check that the result is actually containing some text
if netTextResult(netID) <> "" then
-- Put the text in the field or whatever
else
alert "Data lost during transfer."
end if
else
alert "Operation did not complete successfully."
end if
else
go the frame
end if
end exitFrame me
Note: You must snip off the line that checks for an empty text if your ASP
pages are not returning a value back as such. Else the user will get an
error even if the net operation completed successfully.
Regards,
Pranav
<snip>
so is this right?
if netID = VOID then
netID = postNetText(getURL & "courses.asp" & "?",[])
end if
end
on exitFrame me
if netID <> VOID then
if netDone(netID) then
if netError(netID) = "OK" then
member("course_ID").text = netTextResult(netID)
set the text of field "courseList" = netTextResult(netID)
netID = VOID
else
alert("There was an error" && getNetErrorCodes(netError(netID)))
netID = VOID
end if
end if
end if
end
<snip>
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]