On Jan 22, 2006, at 11:53 AM, Brian Heibert wrote:
How would I go about creating a array that would save the last url
that was entered in the url edit field so if a new url is entered
in the edit field when the user clicks back it would go back to the
old edit field
dim saveurl() as string
saveurl = gofield.text
if gofield.text <> saveurl then
//saveurl = gofield.text
//gofield.text = saveurl
saveurl=Array(gofield.text)
viewer.htmlviewer1.loadurl saveurl
else
end if
The code above doesn't work
You need to *append* to the array, not create one, and the array
cannot be a local variable. Add the array as a property to the
window, and use the Append method. "Array()" creates an array, so all
you're doing is creating a local array of one item (the current) URL
and then it's destroyed just a moment later.
Seth Willits
----------------------------------------------------------
Freak Software - http://www.freaksw.com/
ResExcellence - http://www.resexcellence.com/realbasic/
----------------------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>