Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A form along with its module actually represents a class object. You can also create (instanciate) multiple Instances of that class object.</p> <p>So, Any variable you declare as public becomes a public property of that class object. Note that any function in the forms code module declared as public becomes a public method of that class object. All of these properties and methods then show up in the intel-sense when you type in the "me." keyword.</p> <p>If you declare the variable as private, then that variable (or function) will not be exposed as a public property (variable) or a public method (function) of the form.</p> <p>So the simple solution your cases is to drop the use of the me keyword in your code, and it you code will run just fine at. </p> <p>So declaring as public or private does have an effect here. In fact, “private” is the default. </p> <p>So, public will expose the variable and/or functions as properties and methods of that form which is a class object (note that you can have Multiple instances of the same form loaded at the same time).</p> <p>If you decleare things as private (the default, so you don’t have to do anything for the Variable or function) then you can still use the value in ANY code routine in that forms code module, but it will not be public exposed as a property/method and thus you can't use me.</p> <p>Thus, your code will work fine if you remove the use of the me., and just go:</p> <pre><code>function bar() as long call do_something(id_foo) end function </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload