le 8/11/99 5:30, Julie Dubois à t11349@... a écrit : > Hi list, Hi Julie - welcome to the list > I have a question concerning the COMPILE statement. > > In one of my program, i want to override FB's preferences, so > i use _chgConfig: > > COMPILE 0, _dimmedVarsOnly _chgConfig _arrayBase0 _noRuntimeErrs Personally I don't use _chgConfig, preferring to change in the Preferences dialog... like Mel, I have problems with new-fangled commands ;-) > Well, _arrayBase0 = 0 and _noRuntimeErrs = 0 !!! > Does that mean that... > COMPILE 0, _dimmedVarsOnly _chgConfig > ....would be the same ? > If yes then why would someone use those 2 constants ? But if I remember rightly: These are bit masks, so that means not that they equal zero but that they're working on bit 0, which isn't exactly the same thing... however having the same value for more than one does seem strange. In my version of online help these are... _ChgConfig = 32768 _ArrayBase1 = 16384 _ArrayBase0 = 0 _OptimizeAsInt = 8192 _DontOptimize = 0 _ChkRuntimeErr = 4096 _NoRuntimeErrs = 0 OK. Looking at this now makes me think that they aren't bit masks... but that the params marked '0' are the default values, i.e. if you choose _chgConfig then you automatically get _arrayBase0, _DontOptimise and _noRuntimeErrors and only if you *don't* want these do you have to override them with their companion commands. > It's not specified in the ref manual. > > For example: > COMPILE 0, _chgConfig _arrayBase0 > If FB prefs have the 'Check runtime errors' button checked, > then this COMPILE line will deactivate it. Is that correct ? > > Thanks in advance, > Julie HTH :-j (don't optimize *this* gnome!)