You can make a static method. Then you don't have to initiate the class and directly go to your method by using.
class.yyy:yourMethod().
CLASS class.yyy:
METHOD PUBLIC STATIC VOID yourMethod():
END METHOD.
Those windows are things that are displayed. Ain't that right?
I guess somewhere in your code you have written: "DISPLAY string".
Press space to continue is typical for a display window.
I don't know if I'm right. But maybe you can take a look for it.
You have 2 solutions, you can use a SAX reader or a Msxml.DomDocument (don't know if it's supported by every version I'm using 10.2b).
A little example by using a Msxml.DomDocument:
DEFINE VARIABLE chXmlDoc AS COM-HANDLE.
DEFINE VARIABLE chXmlNodeList AS COM-HANDLE.
DEFINE VARIABLE...
There is a fine solution to find a tag in XML but you have to be sure the tag is not duplicated with the same name.
What I mean is that your xml may not contain:
<hotel>
<id>1</id>
</hotel>
<person>
<id>1</id>
</person>
because when you search ID it will find both (u can also check it with...
You can pass a temp-table record like this:
CREATE tt-customer.
tt-customer.name = "This is the name".
RUN test(TEMP-TABLE tt-customer:DEFAULT-BUFFER-HANDLE). /*this is your current tt-customer record*/
PROCEDURE test:
DEFINE INPUT PARAMETER hCustomer AS HANDLE NO-UNDO.
strName =...
Tsss, topic can be closed.
I found the right solution. The next thing I tried was:
RUN testProcedure (htt-customer:HANDLE)
and it looks like he know it was already a buffer, great job progress I didn't expect that. :)
Greetz Tim.
Hello guys,
I have a problem by passing a buffer or handle from a dynamic query buffer to another procedure.
DEFINE VARIABLE queryCustomer AS HANDLE NO-UNDO.
CREATE QUERY queryCustomer.
queryCustomer:ADD-BUFFER(htt-customer).
queryCustomer:QUERY-PREPARE("for each " + htt-customer:NAME)...
Hi,
Looks like there is already a good answer. That's great.
Anyway I'd like to share something with u guys.
It's also possible to pass a buffer like this:
FIND FIRST customer WHERE nr = 1 NO-LOCK.
IF AVAIL customer THEN RUN updateCustomer(BUFFER customer) /* or INPUT BUFFER customer */...
Well I'm making a logfile that says for example: Error in function getCustomer -> Could not find customer by id 123456 (error at line: 'line number').
Would help a little if you'd have to search things when errors occured. If this is possible.
Hello guys,
Does anyone know if it's possible to get the current line-number or something similar?
I'm writing a logfile and I'm trying to add the line-number to the logfile so I know where the problem exactly occured.
Greetz,
KleineCuypie
Buffers can be used in different ways. For example when u have to get a value from a tablerecord and use it in a new record you'll need a buffer.
DEFINE BUFFER b_customer FOR customer.
FIND FIRST customer WHERE id = 1.
IF AVAIL customer THEN DO:
CREATE b_customer.
b_customer.id = 2...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.