Focal Point
{OPEN] Function to include quotes in a value

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2757050906

August 30, 2011, 03:46 AM
Mayank Agrawal
{OPEN] Function to include quotes in a value
Hi
I want to know is there any function existing in WebFocus for putting any value or number inside a single Quote.
For Example if a vaiable RTM = 20
I want to have like '20' in any other Variable.
Its urgent.!!
Please Reply asap.
Thanking You.
Regards
Mayank Agrawal
August 30, 2011, 04:49 AM
MurthyRSN
You can use EDIT to get quotes to values.


WebFOCUS v7.7.05
Windows 7
HTML/EXCEL/PDF/AHTML
August 30, 2011, 08:21 AM
<FreSte>
... or ...

-SET &ECHO='ON';

-SET &RTFM = ITALY;

TABLE FILE CAR
SUM DEALER_COST
WHERE COUNTRY EQ &RTFM.QUOTEDSTRING
ON TABLE HOLD
END

August 30, 2011, 09:24 AM
jfr99
A couple other examples .......

-*
-SET &RTM = 20;
-SET &RTM_Q1 = '''' | &RTM | '''';
-SET &RTM_Q2 = EDIT(&RTM,'''99''');
-*
-TYPE RTM ------- &RTM
-TYPE RTM_Q1 ---- &RTM_Q1
-TYPE RTM_Q2 ---- &RTM_Q2
-EXIT
-*


WebFocus 8.201M, Windows, App Studio
August 30, 2011, 10:04 AM
ABT
quote:

-SET &RTFM = ITALY;


Bwahahahahahahahaha

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
August 30, 2011, 10:29 AM
<FreSte>
Not subtle enough Smiler

This message has been edited. Last edited by: <FreSte>,
August 30, 2011, 05:35 PM
Waz
Is this for a dialog manager variable ??


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 01, 2011, 06:19 AM
Baillecl
Too subtle for me.
But Google told me what RTFM meant.
Thanks to ABT to help slow minded
Cordially and Slow Mindedly
PS : I wouldn't name a Field DATE if I were giving examples to a NewComer. (I used to be a famous player in "the Dinner Game")


Focus Mainframe 7.6.11
Dev Studio 7.6.11 and !!!
PC Focus, Focus for OS/2, FFW Six, MSO
September 01, 2011, 08:11 AM
ABT
quote:
...
WHERE COUNTRY EQ &RTFM.QUOTEDSTRING
...


Ths is a complete sidebar, but when the heck is DevStudio going to get Intellisense / type ahead / code complete? I am envious of the Microsoft tools for this.

I'll be the first to say that i personally didn't know there was a QUOTEDSTRING method, but if there was intellisense you;d see it and every other available property.

WebFOCUS.Net?

-ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
September 01, 2011, 04:29 PM
<FreSte>
.. so the name of the variable was not a bad choice afterall Smiler

There are some more I know of:
-SET &VAR1 = 12;
-SET &VAR2 = 'ABC';

-TYPE &VAR1.TYPE
-TYPE &VAR2.TYPE

-TYPE &VAR1.LENGTH
-TYPE &VAR2.LENGTH

-TYPE &VAR2.EXIST
-TYPE &NOVAR.EXIST


,but I agree with you, some more intelligence would be very much welcome
September 01, 2011, 05:43 PM
Waz
quote:
Microsoft tools


CPU time wasters.....

If you need point and click and "autocomplete" then you don't know the language.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 02, 2011, 07:40 AM
<JJI>
I have to agree with Fred and ABT. Some more intenlligence would definitely be appreciated by most developers.
Autocomplete is the one I would prefer the most.
Autocomplete helps you to develope quicker and does not mean that you don't know the language!!!!!
September 04, 2011, 05:38 PM
Waz
quote:
does not mean that you don't know the language


Conthe contrary, it creates an environment of assumptions, and you could end up with code that you don't want if you're not checking what its "autocompleting".

Perhaps its just the option of a bit of a programming dinosaur. I always hated predictive test stuff in mobile phones.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!