... PHB_SYMB pDefSymb; /* symbol where the codeblock was created */ PHB_ITEM pLocals; /* table with referenced local variables */ void * pStatics; /* STATICs base frame */ HB_USHORT uiLocals; /* number of referenced local variables */ HB_SHORT dynBuffer; /* is pcode buffer allocated dynamically, SHORT ...
even statics need to be released with nil This is not true. STATIC variables can't be released as they have static lifetime. I also believe Locals execute faster at run-time. I don't think so. STATIC variables are created at ...
To All I only use Publics for defining System wide user roles .. Read, Write, Supervisor and Admin... Statics work fine in a .prg with many functions .. specifically if you need to update a Static value within your .prg and have visibility within the .prg ..Hash's works great ...
... but quasi-interpreted So the behavior is more similar to what dbase was where there were only public and private variables The usefulness of statics is highly debatable in this type of program and they are also shared between threads when there are simultaneous requests Therefore, if you ...
mi versión de fivewin es antigua y siempre trato de ayudar a toda la gente que no tiene la oportunidad de actualizarse con frecuencia, en la cual me incluyo.
Define las variables estaticas al principio de cada PRG #include "FiveWin.ch"#include "xBrowse.ch"#include "Viking_Master.ch"#include "TSButton.ch"#include "noway.ch"#include "DTPicker.ch"#include "Image.ch" MEMVAR oAppSTATIC cOr...
Define las variables estaticas al principio de cada PRG #include "FiveWin.ch"#include "xBrowse.ch"#include "Viking_Master.ch"#include "TSButton.ch"#include "noway.ch"#include "DTPicker.ch"#include "Image.ch" MEMVAR oAppSTATIC cOr...
Define las variables estaticas al principio de cada PRG #include "FiveWin.ch"#include "xBrowse.ch"#include "Viking_Master.ch"#include "TSButton.ch"#include "noway.ch"#include "DTPicker.ch"#include "Image.ch" MEMVAR oAppSTATIC...
Uwe, Also you must have oCust declared as a static because you didn't pass it. I don't recommend using statics. And I don't recommend calling functions to manipulate the database. If you want to modify the database's behavior then create a subclass and override a method (like ...
Marc, To early I can't see the logic. Are you familiar with STATICs? This is just using a static variable inside a function to hold an object. The reason for doing this is because the static will hold the object until the program is ended. So, you can ...
Me parece que no es el tipo de reentrada al que se refiere el problema con las STATICs, independientemente del cuidado que hay que tener en la programación de cosas expuestas a eventos como es la programación en Windows. Los problemas de alto nivel se pueden superar ...
... en esas condiciones dará lugar a errores, sino se lleva cuidado. Me parece que no es el tipo de reentrada al que se refiere el problema con las STATICs, independientemente del cuidado que hay que tener en la programación de cosas expuestas a eventos como es la programación en Windows. Los problemas ...