GUIBuilder: fngb__del_code (gb_func) - Delete .gbf String Data or Chunk of Code (Superseded)

GUIBuilder has been superseded by the AppBuilder module in the BASIS IDE for BBj. Includes support for both the READRECORD Event Queue and PROCESS_EVENTS/CALLBACK paradigm. Integrates tightly with FormBuilder, the BBj replacement for ResBuilder.

Syntax

def fngb__del_code(gb__win_id$,gb__ctl_id$,gb__event_code$,
gb__gbf_data$,gb__sub_name$)

Description

This function is used to delete the following from the .gbf file:

  • Event handler routines.

  • Initialization or End of Job routines.

  • User-defined subroutine or function.

  • [Program] block variable or value lines.

    To Delete

    Use

    Notes

    Event handler routine.

    n = fngb__del_code("win-id","ctl-id",
    "event-code",gb__gbf_data$,
    sub_name$)

    n = 1 if the routine was deleted, 0 if the routine didn't exist.

    Initialization or End of Job routine.

    n = fngb__del_code("",
    "Init","",gb__gbf_data$,"")

    n = 1 if the routine was deleted, 0 if the routine didn't exist.

    User-defined subroutine or function.

    N = fngb__del_code("",
    "Function","",gb__gbf_data$,
    "func-name")

    n = 1 if the subroutine or function was deleted, 0 if the subroutine or function didn't exist.

    [Program] block variable or value line.

    n = fngb__del_code("",
    "Program","",gb__gbf_data$,
    "var-name")

    n = 1 if the variable was deleted, 0 if the variable didn't exist.