Re: Error when tryijng to use Upper()

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

--------------Boundary-00=_Z71TQL80000000000000
  charset="iso-8859-1"

=0D
 =0D
-------Original Message-------=0D
 =0D
From: EUforum at topica.com=0D
Subject: Re: Error when tryijng to use Upper()=0D
 =0D
=0D
=0D
----- Original Message ----- =0D
>From: ronaustin at alltel.net =0D
>To: EUforum =0D
>Sent: Wednesday, October 15, 2003 11:20 PM=0D
>Subject: Error when tryijng to use Upper()=0D
>=0D
>=0D
>=0D
>I included wildcard.e and misc.e in my program and wrote =0D
>to following to force text to upper case when it was saved.=0D
>=0D
>err =3D db_insert(Upper(getText(Code)),Upper(getText(Desc)))=0D
>=0D
>I get an error stating that "Upper is not defined". What =0D
>am I doing wrong?=0D
>=0D
=0D
The correct spelling for the uppercase conversion routine is 'upper' and =
not
'Upper'. Euphoria is a case-sensitive, just like C++ is.=0D
=0D
>I would really prefer that the text be entered in upper case=0D
>as the user types it, but I don't see any way to do that =0D
>unless I get the letters one at a time, convert them to =0D
>upper case and then display them back on the screen.=0D
>=0D
>It would be nice if a flag could indicate that text should =0D
>be entered in upper case when using the SleText control.=0D
=0D
Use the flag ES_UPPER when creating the control.=0D
=0D
For example:=0D
Code =3D create(SleText, "", MainWin, l,t,w,h, ES_UPPERCASE)=0D
=0D
=0D
Other flags that might be useful with 'edit' controls are ...=0D
=0D
ES_CENTER -- center the text=0D
ES_RIGHT -- right align the text=0D
ES_LOWERCASE -- force only lowercase =0D
ES_PASSWORD -- display '*' for each character=0D
ES_NOHIDESEL -- don't hide the selection when it loses focus=0D
ES_DISABLENOSCROLL -- disable, rather than hide, unwanted scrollbars=0D
ES_READONLY -- don't allow text to be modified by the keyboard.=0D
ES_WANTRETURN -- insert the return-character=0D
ES_NUMBER -- only allow digits=0D
=0D
-- =0D
Derek=0D
=0D
Thanks, Derek, George and the rest of you.  I can't find         ES-UPPER
mentioned anywhere in the Euphoria documentation.  For that matter I can'=
t
find SelText or EditText either.  Where do I find the documentation for
these items?=0D
=0D
I had a line in my program:=0D
=0D
integer printerr=0D
             err=0D
=0D
I got a message saying err wasn't defined.  I finally used integer printe=
rr,
err  and it liked that.=0D
=0D
I have a constant list with several items that works fine.  Why doesn't i=
t
work the an integer list?=0D
=0D
=0D
TOPICA - Start your own email discussion group. FREE!=0D
=0D
=0D
=0D
=0D
=2E=20
--------------Boundary-00=_Z71TQL80000000000000
Content-Type: Text/HTML;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-=
1">
<META content=3D"IncrediMail 1.0" name=3DGENERATOR>
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER></X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style=3D"BACKGROUND-POSITION: 0px 0px; FONT-SIZE: 12pt; MARGIN: 5px=
 10px 10px; FONT-FAMILY: Arial" bgColor=3D#ffffff background=3D"" scroll=3D=
yes ORGYPOS=3D"0" X-FVER=3D"3.0">
<TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100=
%" border=3D0>
<TBODY>
<TR>
<TD id=3DINCREDITEXTREGION style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-F=
AMILY: Arial" width=3D"100%">
<DIV><BR>&nbsp;</DIV>
<DIV id=3DIncrediOriginalMessage><I>-------Original Message-------</I></D=
IV>
<DIV>&nbsp;</DIV>
<DIV id=3Dreceivestrings>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>From:</B></I> <A href=3D"m=
ailto:EUforum at topica.com">EUforum at topica.com</A></DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Date:</B></I> Wednesday, O=
ctober 15, 2003 10:51:42 AM</DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>To:</B></I> <A href=3D"mai=
lto:EUforum at topica.com">EUforum</A></DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Subject:</B></I> Re: Error=
 when tryijng to use Upper()</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The Euphoria Mailing List =3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <BR><BR><BR>----- Original Message ----- <=
BR>&gt;From: <A href=3D"mailto:ronaustin at alltel.net">ronaustin at alltel.net=
</A> <BR>&gt;To: EUforum <BR>&gt;Sent: Wednesday, October 15, 2003 11:20 =
PM<BR>&gt;Subject: Error when tryijng to use Upper()<BR>&gt;<BR>&gt;<BR>&=
gt;<BR>&gt;I included wildcard.e and misc.e in my program and wrote <BR>&=
gt;to following to force text to upper case when it was saved.<BR>&gt;<BR=
>&gt;err =3D db_insert(Upper(getText(Code)),Upper(getText(Desc)))<BR>&gt;=
<BR>&gt;I get an error stating that "Upper is not defined". What <BR>&gt;=
am I doing wrong?<BR>&gt;<BR><BR>The correct spelling for the uppercase c=
onversion routine is 'upper' and not 'Upper'. Euphoria is a case-sensitiv=
e, just like C++ is.<BR><BR>&gt;I would really prefer that the text be en=
tered in upper case<BR>&gt;as the user types it, but I don't see any way =
to do that <BR>&gt;unless I get the letters one at a time, convert them t=
o <BR>&gt;upper case and then display them back on the screen.<BR>&gt;<BR=
>&gt;It would be nice if a flag could indicate that text should <BR>&gt;b=
e entered in upper case when using the SleText control.<BR><BR>Use the fl=
ag ES_UPPER when creating the control.<BR><BR>For example:<BR>Code =3D cr=
eate(SleText, "", MainWin, l,t,w,h, ES_UPPERCASE)<BR><BR><BR>Other flags =
that might be useful with 'edit' controls are ...<BR><BR>ES_CENTER -- cen=
ter the text<BR>ES_RIGHT -- right align the text<BR>ES_LOWERCASE -- force=
 only lowercase <BR>ES_PASSWORD -- display '*' for each character<BR>ES_N=
OHIDESEL -- don't hide the selection when it loses focus<BR>ES_DISABLENOS=
CROLL -- disable, rather than hide, unwanted scrollbars<BR>ES_READONLY --=
 don't allow text to be modified by the keyboard.<BR>ES_WANTRETURN -- ins=
ert the return-character<BR>ES_NUMBER -- only allow digits<BR><BR>-- <BR>=
Derek<BR></DIV>
<DIV>Thanks, Derek, George and the rest of you.&nbsp; I can't find&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ES-UPPER mentioned anywhere in =
the Euphoria documentation.&nbsp; For that matter I can't find SelText or=
 EditText either.&nbsp; Where do I find the documentation for these items=
?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I had a line in my program:</DIV>
<DIV>&nbsp;</DIV>
<DIV>integer printerr</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; err</DIV>
<DIV>&nbsp;</DIV>
<DIV>I got a message saying err wasn't defined.&nbsp; I finally used inte=
ger printerr, err&nbsp; and it liked that.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have a constant list with several items that works fine.&nbsp; Why=
 doesn't it work the an integer list?<BR>--^-----------------------------=
-----------------------------------<BR>This email was sent to: <A href=3D=
"mailto:ronaustin at alltel.net">ronaustin at alltel.net</A><BR><BR>EASY UNSUBS=
CRIBE click here: <A href=3D"http://topica.com/u/?b1dd66.b6KEgr.cm9uYXVz"=
>http://topica.com/u/?b1dd66.b6KEgr.cm9uYXVz</A><BR>Or send an email to: =
<A href=3D"mailto:EUforum-unsubscribe at topica.com">EUforum-unsubscribe@top=
ica.com</A><BR><BR>TOPICA - Start your own email discussion group. FREE!<=
BR><A href=3D"http://www.topica.com/partner/tag02/create/index2.html">htt=
p://www.topica.com/partner/tag02/create/index2.html</A><BR>--^-----------=
-----------------------------------------------------<BR><BR><BR><BR><BR>=
=2E </DIV></TD></TR>
<TR>
<TD id=3DINCREDIFOOTER width=3D"100%">
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
<TBODY>
<TR>
<TD width=3D"100%"></TD>
<TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD>
<TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T=
--------------Boundary-00=_Z71TQL80000000000000--

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

Search



Quick Links

User menu

Not signed in.

Misc Menu