New topic: 

PopupMenu to EditField to Database

<http://forums.realsoftware.com/viewtopic.php?t=32210>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       rbasic20091005153           Post subject: PopupMenu to EditField 
to DatabasePosted: Wed Jan 27, 2010 10:53 am                               
Joined: Sat Apr 04, 2009 5:10 pm
Posts: 642              Hola,

It seems to be a simple task, but I'm facing the biggest challenge of my life.

I have an application that lets the user keep web accounts.  There are about a 
dozen EditFields for title, name, e-mail address, URL...  There's a popup menu 
(PopupMenu1) which contains e-mail addresses.  Selecting an index, an e-mail 
address will be inserted to an EditField for E-mail address entry.

Code:// Inserting list item
If Me.ListIndex=0 Then
  Exit
Else
  EditFielde.Text=Me.List(Me.ListIndex)
End if


Clicking on a PushButton, a record will be saved.

Code:Dim EditDB As REALSQLdatabase
EditDB=New REALSQLdatabase
RS1.Edit

RS1.Field("title").StringValue=EditFieldt.Text
RS1.Field("username").StringValue=EditFieldu.Text
RS1.Field("password").StringValue=EditFieldp.Text
RS1.Field("email").StringValue=EditFielde.Text
RS1.Field("website").StringValue=EditFieldw.Text
RS1.Field("creation").StringValue=EditFieldc.Text
..
..
RS1.Update
EditDB.Commit


Selecting an e-mail address from PopupMenu1 does insert the selected e-mail 
address to an editfield (EditFielde.Text).  But the saved record shows an empty 
field for the e-mail address.  If I type an e-mail address manually and click 
on the save button, the e-mail field will be filled accordingly.

Why does selecting an e-mail address from a PopupMenu leaves the e-mail 
Editfield empty?  I cannot believe that I did not realized for a long time that 
there was such an error.

Muchas gracias for your advice,

Tom     
_________________
Mac OS X 10.5.8/REALBasic 2008 R5.1 ~ REALBasic 2009 R4
Don't MBS-spam me.  Don't plugin-spam me.  No thanks.  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to