🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
1 messages
1 total messages Started by edw Fri, 18 Feb 2005 13:44
Websnap question. Method access between TFormLoginAdapter and TForms
#1432
Author: 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);
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads