Search:

Type: Posts; User: starzen

Page 1 of 80 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    16
    Views
    99

    Re: Incorrect Boolean Logic

    its a pretty old hat that DF will convert operators in expressions like that hence the use of 0.0 or a cast to number

    this is why it is even more important to be clear. in a code review i would...
  2. Replies
    16
    Views
    99

    Re: Incorrect Boolean Logic

    again converting a decimal/double to boolean and hoping for the correct result is not a good idea

    the issue i see here is that the compiler should throw an error and not allow a direct decimal to...
  3. Replies
    16
    Views
    99

    Re: Incorrect Boolean Logic

    doesnt matter what the data type is. what matters is the conversion logic behind it. At the moment DF converts a decimal of 0.5 to false

    Showln (If(0.5, "TRUE", "FALSE"))

    again i would never...
  4. Replies
    16
    Views
    99

    Re: Incorrect Boolean Logic

    to me it doesnt make sense to depend on any language top convert a decimal to a boolean. Dont think there are any real rules for this

    how about you make your code clearer like

    (mydecimal > 0.0)...
  5. Replies
    16
    Views
    99

    Re: Incorrect Boolean Logic

    boolean as in boolean value (true / false)

    quoted from the doc

    PurposeTo combine two variables into one expression that is true when either variables are true, and false only when both...
  6. Replies
    16
    Views
    99

    Re: Incorrect Boolean Logic

    OR is a boolean operation meaning both operators are used as booleans
  7. Thread: Mssql

    by starzen
    Replies
    3
    Views
    43

    Re: Mssql

    possibly corrupt data, try running a checkdb
  8. Replies
    2
    Views
    44

    Re: Colocaciont ilegal?

    you are probably including this into another procedure or function
  9. Re: Strategy for both relocating, resizing control and adapt the font height when resizing a window

    resizing fonts almost never ends up being a good user interface.

    we had resizing, locating logic long before DAW added the anchors. the hook is simply OnResize or even lower level Procedure set...
  10. Replies
    5
    Views
    186

    Re: Popup_Modal from .pkg file

    You can call it from anywhere but it has to be previously defined or registered so that the compiler knows its a valid object

    so for example a use statement in the same package before the code or...
  11. Re: error 4320 ...\CRNOTESA.FD (ln 34) Missing Argument 34 Huh?

    had those a few times as well
  12. Re: error 4320 ...\CRNOTESA.FD (ln 34) Missing Argument 34 Huh?

    either a bad fd file somewhere else or

    missing quote often fires on the last line of a file because well it couldnt find the missing quote
  13. Replies
    15
    Views
    185

    Re: AddDDOStructure problem

    the web is quite different of course with all the syncs and process pooling

    i am guessing you have a data entry view showing one record and you want to show records with the same state in a list
    ...
  14. Replies
    15
    Views
    185

    Re: AddDDOStructure problem

    have you debugged the call into refresh? is it going into your begin?

    have you tried refreshing the contents of your list at the bottom after setting the constraint
  15. Thread: xml

    by starzen
    Replies
    15
    Views
    374

    Re: xml

    instead of changing the xml file change your code to properly read the namespaces
  16. Thread: IdleHandler

    by starzen
    Replies
    5
    Views
    113

    Re: IdleHandler

    just to add while in general in DF the idle handler would work there are times where the idle handler could probably fire during transactions
  17. Thread: IdleHandler

    by starzen
    Replies
    5
    Views
    113

    Re: IdleHandler

    simply sometimes a programmer forgets to use an unlock or end_transaction

    the program continues running normal mostly until you exit but of course blocks everyone else.

    this would be to check...
  18. Thread: IdleHandler

    by starzen
    Replies
    5
    Views
    113

    Re: IdleHandler

    yes you can

    a long time ago i wrote a replacement for all things like messageboxes and added code similar to this to modal popup classes in a system where they had major issues with transactions....
  19. Replies
    4
    Views
    110

    Re: Deferred reports

    Bengt

    i am guessing you are calling runreport from another view

    of course if you make your view deferred you cant call anything inside that view until you activate it whch also creates it
  20. Replies
    7
    Views
    208

    Re: WebAppUser modifications

    yes. we are just implementing SSO into an app and that one doesnt use webappuser at all

    either way you have to watch with future releases. sadly a lot of the code in the base daw stuff is not very...
  21. Replies
    7
    Views
    208

    Re: WebAppUser modifications

    We do both. Add fields to webappuser but also connect other tables to it. Mainly because the other tables already exist
  22. Thread: Crossed data

    by starzen
    Replies
    8
    Views
    144

    Re: Crossed data

    chances are the issue is in the program. if it was a hardware or driver issue you wouldnt end up with a proper id in the field
  23. Re: Upgrade to List & Label 24 and spaces in Variables/Fields

    for safety you could put a check in the code that adds the variables to throw an error
  24. Re: "DF_FILE_ROOT_NAME" or "DF_FILE_LOGICAL_NAME"

    DF_FILE_ROOT_NAME will actually point to the int file in some cases

    Also both are accessible without opening the table. A test will probably return the data even with the INT/CCH missing so i...
  25. Replies
    14
    Views
    369

    Re: Probably a stupid idea

    generally not a bad idea but the Studio probably doesnt keep track of all things and some of the info may not be as easily available

    in the meantime you could use source control and frequent...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4