Fw: Derek Parnell EDB Windows

new topic     » topic index » view thread      » older message » newer message

This is a multi-part message in MIME format.

------=_NextPart_000_001A_01C1CDC6.4DAA2720
charset="iso-8859-1"

I am finally getting some data. I did a geText from the EditText fields into a
working  field and it shows up in a reload
into a list so

j vandal


???----- Original Message -----
From: sixs at ida.net
Subject: Derek Parnell EDB Windows



Hello
I am using EditText,
I am wanting to display a record I find back into the input fields
These are the windows fields:
I am adding records with and automatic numer as key

llastname = create(EditText,"llname",lv,325,2,130,20,0),
tkey = create(LText,"Key",BigWin,25,352,35,20,0),
ekey = create(EditText,"",BigWin,115,352,33,25,0),
tPnone = create(LText,"Phone NO",BigWin,25,2,150,20,0),
phonenumber = create(EditText,"",BigWin,115,2,130,20,0),
tLname = create(LText,"Last Name",BigWin,25,25,130,20,0),
lastname = create(EditText,"lname",BigWin,115,25,130,20,0),
tFname = create(LText,"First name",BigWin,25,52,130,20,0),
firstname = create(EditText,"fname",BigWin,115,52,130,20,0),
tMid = create(LText,"Mid Initial",BigWin,25,82,130,20,0),
middleinitial = create(EditText,"midinit",BigWin,115,82,130,20,0),
tstreet = create(LText,"Street No",BigWin,25,112,130,20,0),
 sequence key, data, ms
    integer f,  key_num
    wcphonenumber = {}
 wclastname  = {}
 wcfirstname = {}
 wcmiddleinitial  = {}
 wcphonenumber = getText(phonenumber)
 wclastname = getText(lastname)
 wcfirstname = getText(firstname)
 key_num = (db_table_size())+1
    f = db_find_key(key_num)
    if f >= 1 then
 rtn_code = message_box("duplicate  record",
  "remind for Win98", MB_ICONWARNING+MB_OK)
-- show(SCREEN, db_record_key(f), db_record_data(f))
-- puts(SCREEN, "Do you want to update this record? (y/n) ")
else

 data = {}
    data = {wcphonenumber, lastname,firstname}


    if db_insert(key_num,data) != DB_OK then
      rtn_code = message_box("error adding  record",
  "remind for Win98", MB_ICONWARNING+MB_OK)
  else
    rtn_code = message_box("added  record",
  "remind for Win98", MB_ICONWARNING+MB_OK)
 end if
end if
end procedure
 -- find a record to the database
integer  tlastname, a, cur_key
sequence line1, rec, ms
line = {}
a = (db_table_size())
ms =( sprintf("Num of records #%d\n",{a}))
 rtn_code = message_box(ms,
  "remind for Win98", MB_ICONWARNING+MB_OK)
  for rtn_code = 1 to db_table_size() do
-- rec = db_record_key(rtn_code)
 cur_key = db_record_key(rtn_code)
 line =  db_record_data(rtn_code)
   if length(line) <= 0 then
 myfatal(ms)
 end if
setText(phonenumber,upper(line1[3]))
setText(lastname,line[3])
 setText(firstname,(upper(line)))
   setText(middleinitial,(upper(line)))
 --  setText(street,upper(line[6]))
 --  setText(city,upper(line[7]))
 --  setText(state,upper(line[8]))
 --  setText(zip,upper(line[9]))
-- setText(afil,upper(line[10]))
--  setText(wealth,upper(line[11]))
--  setText(source,upper(line[12]))
--  setText(prof,upper(line[13]))
   setText(ekey,(upper(line)))
  setVisible(lastname, True)
        setVisible(firstname, True)
        setVisible(middleinitial, True) --  setVisible(street, True)
--     setVisible(city, True)
--        setVisible(state, True)
--        setVisible(zip, True)
--  setVisible(afil, True)
--     setVisible(wealth, True)
--        setVisible(source, True)
--        setVisible(prof, True)
 -- setText(ERROR,f)
setText(llastname,line)
setVisible(llastname, True)
 end for
end procedure




------=_NextPart_000_001A_01C1CDC6.4DAA2720
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2722.2800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am finally getting some data. I did a geText from
the EditText fields into a working&nbsp; field and it shows up in a reload into
a list so</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>j vandal</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>???</FONT>----- Original Message ----- </DIV>
<DIV style="FONT: 10pt arial">
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
href="mailto:sixs at ida.net" title=sixs at ida.net>sixs at ida.net</A> </DIV>
<DIV><B>To:</B> <A href="mailto:EUforum at topica.com"
title=EUforum at topica.com>EUforum</A> </DIV>
<DIV><B>Sent:</B> Saturday, March 16, 2002 5:56 PM</DIV>
<DIV><B>Subject:</B> Derek Parnell EDB Windows</DIV></DIV>
<DIV><BR></DIV><PRE>============ The Euphoria Mailing List ============
</PRE>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2>Hello</FONT></DIV>
<DIV><FONT face=Arial size=2>I am using EditText,&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2>I am wanting to display a record I find back into
the input fields</FONT></DIV>
<DIV><FONT face=Arial size=2>These are the windows fields:</FONT></DIV>
<DIV><FONT face=Arial size=2>I am adding records with and automatic numer as
key</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>llastname =
create(EditText,"llname",lv,325,2,130,20,0),<BR>tkey =
create(LText,"Key",BigWin,25,352,35,20,0),<BR>ekey =
create(EditText,"",BigWin,115,352,33,25,0),<BR>tPnone = create(LText,"Phone
NO",BigWin,25,2,150,20,0),<BR>phonenumber =
create(EditText,"",BigWin,115,2,130,20,0),<BR>tLname = create(LText,"Last
Name",BigWin,25,25,130,20,0),<BR>lastname =
create(EditText,"lname",BigWin,115,25,130,20,0),<BR>tFname = create(LText,"First
name",BigWin,25,52,130,20,0),<BR>firstname =
create(EditText,"fname",BigWin,115,52,130,20,0),<BR>tMid = create(LText,"Mid
Initial",BigWin,25,82,130,20,0),<BR>middleinitial =
create(EditText,"midinit",BigWin,115,82,130,20,0),<BR>tstreet =
create(LText,"Street No",BigWin,25,112,130,20,0),</FONT></DIV>
<DIV><FONT face=Arial
size=2>-----------------------------------------------------<BR>procedure
onClick_btnAdd()<BR>&nbsp;------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;sequence key, data, ms<BR>&nbsp;&nbsp;&nbsp;
integer f,&nbsp; key_num<BR>&nbsp;&nbsp;&nbsp; wcphonenumber =
{}<BR>&nbsp;wclastname&nbsp; = {} <BR>&nbsp;wcfirstname =
{}<BR>&nbsp;wcmiddleinitial&nbsp; = {}<BR>&nbsp;wcphonenumber =
getText(phonenumber)<BR>&nbsp;wclastname = getText(lastname)
<BR>&nbsp;wcfirstname = getText(firstname)<BR>&nbsp;key_num =
(db_table_size())+1<BR>&nbsp;&nbsp;&nbsp; f =
db_find_key(key_num)<BR>&nbsp;&nbsp;&nbsp; if f &gt;= 1 then<BR>&nbsp;rtn_code =
message_box("duplicate&nbsp; record",<BR>&nbsp;&nbsp;"remind for Win98",
MB_ICONWARNING+MB_OK)<BR>--&nbsp;show(SCREEN, db_record_key(f),
db_record_data(f))<BR>--&nbsp;puts(SCREEN, "Do you want to update this record?
(y/n) ")<BR>else<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;data = {}<BR>&nbsp;&nbsp;&nbsp;
data = {wcphonenumber,
lastname,firstname}<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; if
db_insert(key_num,data) != DB_OK then<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;rtn_code
= message_box("error adding&nbsp; record",<BR>&nbsp;&nbsp;"remind for Win98",
MB_ICONWARNING+MB_OK)<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;rtn_code =
message_box("added&nbsp; record",<BR>&nbsp;&nbsp;"remind for Win98",
MB_ICONWARNING+MB_OK)<BR>&nbsp;end if<BR>end if</FONT></DIV>
<DIV><FONT face=Arial size=2>end procedure</FONT></DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------------------</DIV></FONT>
<DIV><FONT face=Arial size=2>global procedure onClick_btnFind()</FONT></DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------------------<BR>&nbsp;--
find a record to the database<BR>integer &nbsp;tlastname, a, cur_key<BR>sequence
line1, rec, ms<BR>line = {}<BR>a = (db_table_size())<BR>ms =( sprintf("Num of
records #%d\n",{a}))<BR>&nbsp;rtn_code = message_box(ms,<BR>&nbsp;&nbsp;"remind
for Win98", MB_ICONWARNING+MB_OK)<BR>&nbsp; for rtn_code = 1 to db_table_size()
do<BR>--&nbsp;rec =
db_record_key(rtn_code)<BR>&nbsp;cur_key&nbsp;=&nbsp;db_record_key(rtn_code)<BR>&nbsp;line
=&nbsp; db_record_data(rtn_code) <BR>&nbsp;&nbsp; if length(line) &lt;= 0
then<BR>&nbsp;myfatal(ms)<BR>&nbsp;end

if<BR>setText(phonenumber,upper(line1[3]))<BR>setText(lastname,line[3])<BR>&nbsp;setText(firstname,(upper(line)))<BR>&nbsp;&n
bsp;
setText(middleinitial,(upper(line)))<BR>&nbsp;--&nbsp;
setText(street,upper(line[6]))<BR>&nbsp;--&nbsp;
setText(city,upper(line[7]))<BR>&nbsp;--&nbsp;
setText(state,upper(line[8]))<BR>&nbsp;--&nbsp;
setText(zip,upper(line[9]))<BR>-- setText(afil,upper(line[10]))<BR>--&nbsp;
setText(wealth,upper(line[11]))<BR>--&nbsp;
setText(source,upper(line[12]))<BR>--&nbsp;
setText(prof,upper(line[13]))<BR>&nbsp;&nbsp;
setText(ekey,(upper(line)))<BR>&nbsp; setVisible(lastname, True)
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setVisible(firstname, True)
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setVisible(middleinitial, True)
--&nbsp;&nbsp;setVisible(street, True)&nbsp; <BR>--&nbsp;&nbsp;&nbsp;&nbsp;
setVisible(city, True) <BR>--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
setVisible(state, True) <BR>--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
setVisible(zip, True)<BR>--&nbsp;&nbsp;setVisible(afil, True)&nbsp;
<BR>--&nbsp;&nbsp;&nbsp;&nbsp; setVisible(wealth, True)
<BR>--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setVisible(source, True)
<BR>--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setVisible(prof, True)
<BR>&nbsp;--&nbsp;setText(ERROR,f)<BR>setText(llastname,line)&nbsp;<BR>setVisible(llastname,
True) <BR>&nbsp;end for<BR>end
procedure<BR></DIV></FONT><PRE>==^================================================================
This email was sent to: sixs at ida.net

EASY UNSUBSCRIBE click here: <A
href="http://topica.com/u/?b1dd66.b2NUvS">http://topica.com/u/?b1dd66.b2NUvS</A>
Or send an email to: EUforum-unsubscribe at topica.com

T O P I C A -- Register now to manage your mail!
<A
href="http://www.topica.com/partner/tag02/register">http://www.topica.com/partner/tag02/register</A>

------=_NextPart_000_001A_01C1CDC6.4DAA2720--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu