🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1432

Websnap question. Method access between TFormLoginAdapter and TForms

#1432
From: edw
Date: Fri, 18 Feb 2005 13:44
25 lines
2001 bytes
I'm fairly new to websnap and have been doing the tutorials.

One thing I would like to accomplish is have my user list in
my db instead of having to write them in at designtime. I noticed 
that TLoginFormAdapter has file load/save methods and decided to 
start there in beginning to access that form.

Below is the snippet of code I *thought* would do that. The event
is being called from the main form (TForm) that stays up when you 
create a websnap app when a user clicks a button.

When the savetofile is called the program crashes immediately with a mem error. In the editor the designer hints show the methods found in TLoginFormAdapter but I'm still doing something wrong.

I would like to allow a user to utilize that blank form to
perform maintainance on this application. ie: Whos currently logged in, what time, etc.  

I've been to alot of sites researching websnap but much, actually all, of it is in pascal which isn't a huge problem but I can't load the samples/examples and I'm not an advanced delphi programmer.


//Code snip
   if(!dlg_save->Execute())
      return;

   Home()->WebUserList->SaveToFile(dlg_save->FileName);
Technical Details
Message-ID: <4215f13e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4ca01645b19c96fc,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "edw" <edw.remove.@adelphia.net>
Sender: "edw" <edw.remove.@adelphia.net>
Reply-To: "edw" <edw.remove.@adelphia.net>
Subject: Websnap question. Method access between TFormLoginAdapter and TForms
Newsgroups: borland.public.cppbuilder.internet.web
X-User-Info: 69.7.231.121     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4215f13e$1@newsgroups.borland.com>
Date: 18 Feb 2005 05:44:30 -0800
X-Trace: newsgroups.borland.com 1108734270 207.105.83.66 (18 Feb 2005 05:44:30 -0800)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail