BaanTech
25th March 2003, 18:16
Any ideas on how to get quotations into output strings.
The search I ran gave me 1 result which dealt with pulling
Baan data in cells.
rec.buffer(1;50) = "What I need is: ( value = "PE2" )"
The issue is with the first quotation of "PE2" closing off the
string.
How do we account for " " ". I tried ' " ' and ` " ` with no luck.
Thanks.
BaanTech
mark_h
25th March 2003, 18:27
I think you could use chr$(34) to get a quote into a string.
string x(30)
x = "Hello "&chr$(34)&"Mark"&chrs(34)
Here x would be equal to Hello "Mark". Give that a try.
Mark
BaanTech
25th March 2003, 19:16
It works ...
This was needed to emulate what happens when
adding (field level) database authorizations via standard sessions (via tables ttaad434 and ttaad435).
We needed to insert restrictions from a defined user list and
the standard session required for us either to enter each user
manually or copy one by one from a source.
Our new tool allows us to read in a defined user list and automate the setup required for each user for restrictions.
The critical items to note are that: If ever trying to emulate the setup of database authorizations remember to update the p<user> file as well. And that when using table data authorizations (ttaad434) that any changes made will invoke coded logic (eg. tdpur4101 call to tdpur5106s000 if changing tdpur040.ddat), prior to notifying the user that they actually can't modify the record.
Our request was to allow limited users the ability to enter a specific order type and restrict all other users.
BaanTech
NPRao
25th March 2003, 19:47
Alternatives-
string word(12)
word = """Hello"""
message("%s", word)
word = quoted.string(quoted.string("World"))
message("%s", word)
Also refer to the thread - zoom to subset (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=6294&highlight=query) for issues with the quotes.
popeye
26th March 2003, 01:13
i find this easier ...
hold.string = """" & "abcd" & """"
HTH ...