1. Error when tryijng to use Upper()

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

I included wildcard.e and misc.e in my program and wrote 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 am I doing wron=
g?=0D
 =0D
I would really prefer that the text be entered in upper case as the user
types it, but I don't see any way to do that unless I get the letters one=
 at
a time, convert them to upper case and then display them back on the scre=
en.=0D
 =0D
It would be nice if a flag could indicate that text should be entered in =
upper case when using the SleText  control.
--------------Boundary-00=_FPVS6RO0000000000000
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; SCROLLBAR-FACE-COLOR: #ebeae=
a; FONT-SIZE: 12pt; MARGIN: 5px 10px 10px; SCROLLBAR-HIGHLIGHT-COLOR: #ae=
aaaa; SCROLLBAR-SHADOW-COLOR: #a9a7a7; SCROLLBAR-3DLIGHT-COLOR: #e5e5e5; =
SCROLLBAR-ARROW-COLOR: #875b38; FONT-FAMILY: Arial; SCROLLBAR-DARKSHADOW-=
COLOR: #545252" bgColor=3D#ffffff background=3D"" scroll=3Dyes 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>I included wildcard.e and misc.e in my program and wrote to followin=
g to force text to upper case when it was saved.</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>err =3D db_insert(Upper(getText(Code)),Upper(getText(=
Desc)))</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I get an error stating that "Upper is not defined".&n=
bsp; What am I doing wrong?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I would really prefer that the text be entered in upp=
er case as the user types it, but I don't see any way to do that unless I=
 get the letters one at a time, convert them to upper case and then displ=
ay them back on the screen.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>It would be nice if a flag could indicate that text s=
hould be&nbsp;entered in upper case when using the&nbsp;<FONT size=3D2>Sl=
eText&nbsp;</FONT> control.</DIV></FONT></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=_FPVS6RO0000000000000--

new topic     » topic index » view message » categorize

2. Re: Error when tryijng to use Upper()

you may have your include after it's use. this is a one pass compiler.

to force an edit text field to be upper case do this

id = create(EditText,"",mainWindow,xt,yt,fl+10,cy+5,ES_UPPER)

if you want only numbers use ES_NUMBER

george
---- Original Message -----
From: <ronaustin at alltel.net>
To: "EUforum" <EUforum at topica.com>
Subject: Error when tryijng to use Upper()



I included wildcard.e and misc.e in my program and wrote to following to
force text to upper case when it was saved.

err = db_insert(Upper(getText(Code)),Upper(getText(Desc)))

I get an error stating that "Upper is not defined".  What am I doing wrong?

I would really prefer that the text be entered in upper case as the user
types it, but I don't see any way to do that unless I get the letters one at
a time, convert them to upper case and then display them back on the screen.

It would be nice if a flag could indicate that text should be entered in
upper case when using the SleText  control.



TOPICA - Start your own email discussion group. FREE!

new topic     » goto parent     » topic index » view message » categorize

3. Re: Error when tryijng to use Upper()

----- Original Message ----- 
>From: ronaustin at alltel.net 
>Subject: Error when tryijng to use Upper()
>
>
>
>I included wildcard.e and misc.e in my program and wrote 
>to following to force text to upper case when it was saved.
>
>err = db_insert(Upper(getText(Code)),Upper(getText(Desc)))
>
>I get an error stating that "Upper is not defined".  What 
>am I doing wrong?
>

The correct spelling for the uppercase conversion routine is 'upper' and not
'Upper'. Euphoria is a case-sensitive, just like C++ is.

>I would really prefer that the text be entered in upper case
>as the user types it, but I don't see any way to do that 
>unless I get the letters one at a time, convert them to 
>upper case and then display them back on the screen.
>
>It would be nice if a flag could indicate that text should 
>be entered in upper case when using the SleText  control.

Use the flag ES_UPPER when creating the control.

For example:
   Code = create(SleText, "", MainWin, l,t,w,h, ES_UPPERCASE)


Other flags that might be useful with 'edit' controls are ...

    ES_CENTER -- center the text
    ES_RIGHT -- right align the text
    ES_LOWERCASE -- force only lowercase 
    ES_PASSWORD -- display '*' for each character
    ES_NOHIDESEL -- don't hide the selection when it loses focus
    ES_DISABLENOSCROLL -- disable, rather than hide, unwanted scrollbars
    ES_READONLY -- don't allow text to be modified by the keyboard.
    ES_WANTRETURN -- insert the return-character
    ES_NUMBER -- only allow digits

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

4. Re: Error when tryijng to use Upper()

--------------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 message » categorize

5. Re: Error when tryijng to use Upper()

> 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?

Those are all in the Win32Lib documentation (including the flags like
ES_UPPER, etc.)

> I had a line in my program:

> integer printerr
>             err
> I got a message saying err wasn't defined.  I finally used integer
printerr,
> err  and it liked that.

This works:

integer printerr,
            err

Note the comma after printerr.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Error when tryijng to use Upper()

--------------Boundary-00=_UU6TQL80000000000000
  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
> Thanks, Derek, George and the rest of you. I can't find ES-UPPER=0D
> mentioned anywhere in the Euphoria documentation.=0D
=0D
> For that matter I can't=0D
> find SelText or EditText either. Where do I find the documentation for=0D
> these items?=0D
=0D
Those are all in the Win32Lib documentation (including the flags like=0D
ES_UPPER, etc.)=0D
=0D
> I had a line in my program:=0D
=0D
> integer printerr=0D
> err=0D
> I got a message saying err wasn't defined. I finally used integer=0D
printerr,=0D
> err and it liked that.=0D
=0D
This works:=0D
=0D
integer printerr,=0D
err=0D
=0D
Note the comma after printerr.=0D
=0D
Thanks CK.  Those pesky commas are going to be the death of me.=0D
I also found TextEdit in the Win32 docs, but no mention of SleText.  Can
someone tell me what the difference is between the two or where it might =
be
documented?=0D
=0D
I am unsure of the ettiquite used here.  I am gratefull for all the help =
I
receive here.  Not only is it quick, many times I get replies from severa=
l
different people.  I suspect I will be asking many, many questions as tim=
e
goes by.  I like to thank people when I get a response, but unless I am
asking another question it may be just a waste of everyone's time to get =
a=20
thank you" e-mail.  Any input on this would be appreciated.=0D
=0D
=0D
=0D
TOPICA - Start your own email discussion group. FREE!=0D
=0D
=0D
=0D
=2E=20
--------------Boundary-00=_UU6TQL80000000000000
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 11:33:03 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>&gt; Thanks, Derek, George and=
 the rest of you. I can't find ES-UPPER<BR>&gt; mentioned anywhere in the=
 Euphoria documentation.<BR><BR>&gt; For that matter I can't<BR>&gt; find=
 SelText or EditText either. Where do I find the documentation for<BR>&gt=
; these items?<BR><BR>Those are all in the Win32Lib documentation (includ=
ing the flags like<BR>ES_UPPER, etc.)<BR><BR>&gt; I had a line in my prog=
ram:<BR><BR>&gt; integer printerr<BR>&gt; err<BR>&gt; I got a message say=
ing err wasn't defined. I finally used integer<BR>printerr,<BR>&gt; err a=
nd it liked that.<BR><BR>This works:<BR><BR>integer printerr,<BR>err<BR><=
BR>Note the comma after printerr.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks CK.&nbsp; Those pesky commas are going to be the death of me.=
</DIV>
<DIV>I also found TextEdit in the Win32 docs, but no mention of SleText.&=
nbsp; Can someone tell me what the difference is between the two or where=
 it might be documented?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am unsure of the ettiquite used here.&nbsp; I am gratefull for all=
 the help I receive here.&nbsp; Not only is it quick, many times I get re=
plies from several different people.&nbsp; I suspect I will be asking man=
y, many questions as time goes by.&nbsp; I like to thank people when I ge=
t a response, but unless I am asking another question it may be just a wa=
ste of everyone's time to get a "thank you" e-mail.&nbsp; Any input on th=
is would be appreciated.<BR><BR>--^--------------------------------------=
--------------------------<BR>This email was sent to: <A href=3D"mailto:r=
onaustin at alltel.net">ronaustin at alltel.net</A><BR><BR>EASY UNSUBSCRIBE cli=
ck here: <A href=3D"http://topica.com/u/?b1dd66.b6KEgr.cm9uYXVz">http://t=
opica.com/u/?b1dd66.b6KEgr.cm9uYXVz</A><BR>Or send an email to: <A href=3D=
"mailto:EUforum-unsubscribe at topica.com">EUforum-unsubscribe at topica.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">http://www.to=
pica.com/partner/tag02/create/index2.html</A><BR>--^---------------------=
-------------------------------------------<BR><BR><BR><BR>. </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=_UU6TQL80000000000000--

new topic     » goto parent     » topic index » view message » categorize

7. Re: Error when tryijng to use Upper()

> I am unsure of the ettiquite used here.  I am gratefull for all the help I
> receive here.  Not only is it quick, many times I get replies from several
> different people.  I suspect I will be asking many, many questions as time
> goes by.  I like to thank people when I get a response, but unless I am
> asking another question it may be just a waste of everyone's time to get a
> thank you" e-mail.  Any input on this would be appreciated.

I don't need to be thanked. Others may feel differently, and that's fine. If
you do a thanks, maybe a blanket thank you to "all the beautiful people" or
something. ;)

We all give and get around here. It's all about people who need people.
errr. Something like that.

In the future, when you've sold a million copies of your killer app, we just
ask that you remember the kind people who helped you.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Error when tryijng to use Upper()

One bit of etiquette that has already been mentioned, is to send 
messages in plain text format.



ronaustin at alltel.net wrote:
> 
> 
> -------Original Message-------
>  
> From: EUforum at topica.com <mailto:EUforum at topica.com>
> Subject: Re: Error when tryijng to use Upper()
>  
> 
>  > 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?
> 
> Those are all in the Win32Lib documentation (including the flags like
> ES_UPPER, etc.)
> 
>  > I had a line in my program:
> 
>  > integer printerr
>  > err
>  > I got a message saying err wasn't defined. I finally used integer
> printerr,
>  > err and it liked that.
> 
> This works:
> 
> integer printerr,
> err
> 
> Note the comma after printerr.
>  
> Thanks CK.  Those pesky commas are going to be the death of me.
> I also found TextEdit in the Win32 docs, but no mention of SleText.  Can 
> someone tell me what the difference is between the two or where it might 
> be documented?
>  
> I am unsure of the ettiquite used here.  I am gratefull for all the help 
> I receive here.  Not only is it quick, many times I get replies from 
> several different people.  I suspect I will be asking many, many 
> questions as time goes by.  I like to thank people when I get a 
> response, but unless I am asking another question it may be just a waste 
> of everyone's time to get a "thank you" e-mail.  Any input on 
> 
> 
> .
> 		
> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!
>

new topic     » goto parent     » topic index » view message » categorize

9. Re: Error when tryijng to use Upper()

I, too, struggle with the documentation.  OK, Here's the problem.  We go to=
 Win32Lib  index.htm, press Ctl-F and search for "ES_UPPER" or "SelText"=
 and find nothing.  You will say this is because index.htm is only one of=
 44 files of HTML documentation.  I say I don't have time to initiate up to=
 44 separate searches to locate the explanation for "ES_UPPER".

Two possible solutions come to mind...
1.  Someone could write a search tool.
2.  A link could be placed in index.htm for "EX_*" (I assume all of them=
 are in one file) so we could find them in two steps.  Hopefully, a similar=
 thing would be done for the other batches of constants.

Idea for the (perhaps distant) future - design special flags to put in the=
 comments in Win32Lib source (or any source) which allow a documentation=
 generator to produce documentation for the program.  That way, when the=
 source is changed, it will only be necessary to run docgen to make new=
 documentation.  It could produce a text file with HTML links, and the=
 single file could be easily searched.

Louis.

*********** REPLY SEPARATOR  ***********

On 10/15/2003 at 10:33 AM C. K. Lester wrote:

>
>
>> 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?
>
>Those are all in the Win32Lib documentation (including the flags like
>ES_UPPER, etc.)

new topic     » goto parent     » topic index » view message » categorize

10. Re: Error when tryijng to use Upper()

----- Original Message ----- 
From: <Louis at cwshop.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: Error when tryijng to use Upper()


> 
> 
> I, too, struggle with the documentation.  OK, Here's the problem.  
>We go to Win32Lib  index.htm, press Ctl-F and search for "ES_UPPER" 
>or "SelText" and find nothing.  You will say this is because index.htm
>is only one of 44 files of HTML documentation.  I say I don't have 
>time to initiate up to 44 separate searches to locate the explanation
> for "ES_UPPER".

Its worse than that...there *is* no explanation of ES_UPPERCASE and SelText in
the win32lib docs. This is because I'm not likely to describe the Microsoft
defined constants or API routines in Win32lib's documentation. Think of it this
way, if I write a book to describe the workings of a Porsche 911, you would still
have to go else where to learn how to drive.

There are many sources of information about the Microsoft Windows API, and all
better written than I could ever do.

On the other hand, if you wish to pay me large amounts, I might be persuaded to
add extra to the free win32lib documentation.

> Two possible solutions come to mind...
> 1.  Someone could write a search tool.
> 2.  A link could be placed in index.htm for "EX_*" (I assume all of
> them are in one file) so we could find them in two steps.  
>Hopefully, a similar thing would be done for the other batches of constants.

Well, yes and no.  The search tool could be created, but the content to search
for is still not there.

> Idea for the (perhaps distant) future - design special flags to put
>in the comments in Win32Lib source (or any source) which allow a 
>documentation generator to produce documentation for the program.  
>That way, when the source is changed, it will only be necessary to
>run docgen to make new documentation.  It could produce a text file
> with HTML links, and the single file could be easily searched.

Ummm...that's how its done now. Have you looked at the comments in the library?
They are sprinkled with markup codes already so that the MakeDoc program can
generate the HTML code.

For example...

--/topic Events
--/func subClassControl(sequence Id,  atom hWnd)
--/desc Used to access Windows created controls as if they were win32lib
controls.
--/return INTEGER: A win32lib control id. ZERO if it fails.
-- /i Id is a sequence {ControlType, ParentID} /n
-- /i hWnd is the Windows Handle to the control.
--
--Example
--/code
--    newid = subClassControl( {EditText, myWindow}, winhandle)
--/endcode

generates an entry in the EVENTS.HTM file (the topic) about a function called
'subClassControl'.

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

11. Re: Error when tryijng to use Upper()

=0D
 =0D
-------Original Message-------=0D
 =0D
From: EUforum at topica.com=0D
Subject: Re: Error when trying to use Upper()=0D
 =0D
 =0D
 =0D
----- Original Message ----- =0D
From: <Louis at cwshop.com>=0D
To: "EUforum" <EUforum at topica.com>=0D
Sent: Saturday, October 18, 2003 1:30 AM=0D
Subject: Re: Error when trying to use Upper()=0D
 =0D
 =0D
> =0D
> =0D
> I, too, struggle with the documentation. OK, Here's the problem. =0D
>We go to Win32Lib index.htm, press Ctl-F and search for "ES_UPPER" =0D
>or "SelText" and find nothing. You will say this is because index.htm=0D
>is only one of 44 files of HTML documentation. I say I don't have =0D
>time to initiate up to 44 separate searches to locate the explanation=0D
> for "ES_UPPER".=0D
 =0D
Its worse than that...there *is* no explanation of ES_UPPERCASE and SelTe=
xt
in the win32lib docs. This is because I'm not likely to describe the
Microsoft defined constants or API routines in Win32lib's documentation.
Think of it this way, if I write a book to describe the workings of a
Porsche 911, you would still have to go else where to learn how to drive.=
=0D
 =0D
There are many sources of information about the Microsoft Windows API, an=
d
all better written than I could ever do.=0D
 =0D
On the other hand, if you wish to pay me large amounts, I might be persua=
ded
to add extra to the free win32lib documentation.=0D
 =0D
> Two possible solutions come to mind...=0D
> 1. Someone could write a search tool.=0D
> 2. A link could be placed in index.htm for "EX_*" (I assume all of=0D
> them are in one file) so we could find them in two steps. =0D
>Hopefully, a similar thing would be done for the other batches of consta=
nts
=0D
 =0D
Well, yes and no. The search tool could be created, but the content to
search for is still not there.=0D
 =0D
> Idea for the (perhaps distant) future - design special flags to put=0D
>in the comments in Win32Lib source (or any source) which allow a =0D
>documentation generator to produce documentation for the program. =0D
>That way, when the source is changed, it will only be necessary to=0D
>run docgen to make new documentation. It could produce a text file=0D
> with HTML links, and the single file could be easily searched.=0D
 =0D
Ummm...that's how its done now. Have you looked at the comments in the
library? They are sprinkled with markup codes already so that the MakeDoc
program can generate the HTML code.=0D
 =0D
For example...=0D
 =0D
--/topic Events=0D
--/func subClassControl(sequence Id, atom hWnd)=0D
--/desc Used to access Windows created controls as if they were win32lib
controls.=0D
--/return INTEGER: A win32lib control id. ZERO if it fails.=0D
-- /i Id is a sequence {ControlType, ParentID} /n=0D
-- /i hWnd is the Windows Handle to the control.=0D
--=0D
--Example=0D
--/code=0D
-- newid =3D subClassControl( {EditText, myWindow}, winhandle)=0D
--/endcode=0D
 =0D
generates an entry in the EVENTS.HTM file (the topic) about a function
called 'subClassControl'. =0D
 =0D
-- =0D
Derek=0D
 =0D
For people who are familiar with API programing and know where to look, t=
he
lack of documentation =0D
is probably not a big problem,  but for people like me who have come from=
 a
non GUI language to =0D
Euphoria it's kind of tough.    I'm not complaining, mind you,  Euphoria =
is
great.  When I want to add =0D
some new code to my program I first check for any examples, then I check =
any
documentation I can find,=0D
 then check my code again, then I check for examples again and after 3 or=
 4
rounds if I still don't have=0D
the answer I post a question here.  I'll go download or buy some
documentation for the MS API.=0D
 =0D
 =0D
TOPICA - Start your own email discussion group. FREE!=0D
 =0D
 =0D
 =0D
=2E=20

new topic     » goto parent     » topic index » view message » categorize

12. Re: Error when tryijng to use Upper()

[snip]

>I had a line in my program:
>
>integer printerr
>             err
>
>I got a message saying err wasn't defined.  I finally used
> integer printerr, err  and it liked that.
>
>I have a constant list with several items that works fine.
>  Why doesn't it work the an integer list?

Because if you have lines like this...

constant x = 1
         y = 2

it is saying "define a constant called 'x' and assign it the value '1', and then
set a variable called 'y' to the value '2'.


In general, a LIST of items in Euphoria needs each item except the final to be
followed by a comma. Thus the *constant* definition above should be written ...

constant x = 1,
         y = 2

Note the comma after the '1'.

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu