HMG Tutorials & Tips

Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
  1. When your form Win_1 is known earlier or if you declare Win_1, you can use first statement. If you form Win_1 is loaded/declared/defined in other module (.prg) only SetProperty will work.

    Statistics: Posted by mol — Sun Aug 18, 2019 7:33 pm

  2. Learning Question

    If I use a line of code like

    Win_1.Button1.enabled:= .F. I may get an error that I can
    solve with Setproperty("Win_1","Button1","enabled",.F.)

    Please explain the rules for when you must use set/getproperty functions


    Statistics: Posted by bluebird — Sat Aug 17, 2019 7:23 pm

  3. I have uploaded code for saving and restoring array to and from text file, you may check it.




    Statistics: Posted by Anand — Tue Jun 18, 2019 10:19 am

  4. Well! that's some trick. Its going to take me a while to understand but I'll give it a try.

    BTW Where are all those HB functions described? I have seen list of them but no reference to use.


    Statistics: Posted by bluebird — Mon Jun 17, 2019 5:34 am

  5. I'm using such a trick to save array in .mem file:


    cTemp := "{ || aArrayToSave := " + hb_valtoexp(aArrayToSave) + "}"save all like cTemp to "c:\hmgstorage\myarrays.mem"
    and a piece of code to restore:


    if file("c:\hmgstorage\myarrays.mem")BEGIN SEQUENCE with {|e| break(e)}restore from ("c:\hmgstorage\myarrays.mem") additiveif type(cTemp) <> "U"eval(&cTemp)endifEND SEQUENCEendif

    Statistics: Posted by mol — Sun Jun 16, 2019 6:16 pm