2 questions

Rob Meijer robmeyer at hetnet.nl
Sun Feb 27 00:10:30 EST 2005


Thanks Ken, Klaus, Mark

At 19:33 26/2/2005, Mark Wieder wrote:
>function mydate
>   return the label of button "today"
>end mydate

YES, that's it. I read it over in the helpfile.

About the viewer and how I use it.
If I build an app. I basicly use a main stack
and several stacks as modules.
The main book is for input, the storage is in the
modules. So the leaves these databases alone.
If I want to get info from the modules I can get if
the way you describe: put text of field "foo" of card
"abc" of stack "xyz". In the same way I can put data
into that stack.

But there are handlers you have to execute inside
a module, f.i. (openscript; book=stack, page=card)
In an addressbook each person has his own page and
I have to add a new one:
get page "index" of book "addressdata"
if syserror <> null
open look()    ----to get look;return viewer "look";end
currentpage of look()=last page of book "addressdata"
in look()
send newpage
name of this page="whatever"
blahblahblah
end
close look()

You may use a viewer to show a (part of) a page,
where you want to see special data: f.i. one user
wanted to see what product was the most lucrative,
so he opens a viewer, showing a part of a page
where that list was placed:
open look()
currentpage of look()=page "results" of book ST()----to get etc.
caption of look()="my best profits"
bounds of look()=878,1,1281,487
show look()
stead of a text you may use such a viewer to show parts of a graphic
or whatever.
For me the presence of the viewer-possibility is essential.

I hope you see what I meant to explain.
Have a nice sunday.
Rob



robmeyer at hetnet.nl
www.japrosoft.com
no more spam: Mailwasher Pro
http://www.firetrust.com/products/pro/
and please mention my emailaddress...  


More information about the use-livecode mailing list