Recent content by KleineCuypie

  1. K

    calling a method

    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.
  2. K

    What is the best practice to close procedure and corresponding gui?

    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.
  3. K

    XML parsing using SAX or OE read-xml

    Ok. If OOPS programming don't succeed you can always ask for info about Sax reader.
  4. K

    XML parsing using SAX or OE read-xml

    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...
  5. K

    XML parsing using SAX or OE read-xml

    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...
  6. K

    SDO ERROR :- record has no-lock status ??????????????????

    Can you post a little code from your create and update of the record?
  7. K

    how to pass temp table ?

    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 =...
  8. K

    Pass dynamic query buffer to other procedure.

    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.
  9. K

    Pass dynamic query buffer to other procedure.

    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)...
  10. K

    buffers and assign statement

    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 */...
  11. K

    Get Line Number

    Ok thank you guys, this works great.
  12. K

    Get Line Number

    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.
  13. K

    Get Line Number

    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
  14. K

    Buffers

    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...
Top