locked
Screen fields don't seem to be working... RRS feed

  • Question

  • As a quick question, If I have a screen that is part of a visual class (*.vcx) file and a program (*.prg) associated with it. Besides recompiling the program file and saving the visual class file, is there anything else that needs to be updated in the visual class file as well or something?

    What is happening is for example, I have a checkbox in one of the screens, and a program that toggles it off if it is on at some point, but the application seems to be ignoring this. Here's a snippet from the program file as follows:

    IF gc_frmname = "objarticm" THEN && uncheck invprint when invoice printed // gjs
       IF objarticm.invprint.value = 1 Then
           objarticm.invprint.value = 0
       EndIf
    Endif

    Please advise as I wonder whether I may be missing something, thanks.

    Monday, April 3, 2006 2:25 PM

Answers

  • gc_frmname is a global variable defined in the calling program.

    the class name is actually "articm" of articd.vcx and appears to be defined as objarticm as the form name.

    Another had suggested I use the command of objarticm.invprint.refresh() and so far that seems to work in resetting its property.  One thing I have not been doing with visual class libraries and I wonder if this makes any difference as I am currently not onsite where the production program is currently being used:

    compile class articd

    where articd.vct is the visual class library.  Before I'd open and save the visual class library file and thought it automatically compiled everything.

    Monday, April 3, 2006 5:42 PM

All replies

  • Sounds like you need a fully qualified object name.  For example: myform.invprint.value = 1

    Where is gc_frmname variable created?  Is objarticm the form name?

    Please explain a bit further.

     

    Don

     

     

    Monday, April 3, 2006 5:03 PM
  • gc_frmname is a global variable defined in the calling program.

    the class name is actually "articm" of articd.vcx and appears to be defined as objarticm as the form name.

    Another had suggested I use the command of objarticm.invprint.refresh() and so far that seems to work in resetting its property.  One thing I have not been doing with visual class libraries and I wonder if this makes any difference as I am currently not onsite where the production program is currently being used:

    compile class articd

    where articd.vct is the visual class library.  Before I'd open and save the visual class library file and thought it automatically compiled everything.

    Monday, April 3, 2006 5:42 PM