... inside a loop. Build the code-block in a separate function using the loop variable as one of the parameters of the function. Please search for detached locals in this forum. Keeping this principle in mind, I am sure you can yourself modify the program to use the index in bChange also. For now, ...
... inside a loop. Build the code-block in a separate function using the loop variable as one of the parameters of the function. Please search for detached locals in this forum. Keeping this principle in mind, I am sure you can yourself modify the program to use the index in bChange also. For now, ...
... is well known and was discussed many times in this forum. The solution is to create each control in a separate function using the principle of detached locals. Search for detached locals in this forum. The sample provided by Mr. Antonio above is the right way to go. This is a working program ...
... is well known and was discussed many times in this forum. The solution is to create each control in a separate function using the principle of detached locals. Search for detached locals in this forum. The sample provided by Mr. Antonio above is the right way to go. This is a working program ...
... n ] of oWnd <clauses> // note this value of "n" remains the same till oGet goes out of scope // the principle is called "detached locals" return oGet
METHOD-1 #include "fivewin.ch"function Main() local oWnd, oMenu, n MENU oMenu MENUITEM "Player" MENU for n := 1 to 9 PlayMenuItem( n ) next ENDMENU ENDMENU DEFINE WINDOW oWnd MENU oMenu ACTIVATE WINDOW oWnd CENTE...
hi Silvo, as Detlef say : detached Locals when build in a "Loop" and use "Counter" you must call a Function to build a String for Codeblock so your "Counter" Number will be a STR() in a String FOR ii ...
Dear Master Rao Hats Off !!!!!!!!!!!!!!! all works fine Many many thanks !!! The code exceed my knowledge but xbrowse is great !! I'll Continue with my project
Using fieldname macro, instead of FieldPut() and FieldGet() as in the sample you posted. #include 'fivewin.ch'function main() local aKeys := {'pichincha','internacio'} local hBancos := { => } local hRow local a...
Mr. Wilson Your way of creating columns using oBrw:AddCol() #include 'fivewin.ch'function main() local aKeys := {'pichincha','internacio'} local hBancos := { => } local hRow local aCols := {} local oWnd local oBrw local i local oCo...
Mr. Wilson Please try this sample and let me know if it serves your purpose. #include 'fivewin.ch'function main() local aKeys := {'pichincha','internacio'} local hBancos := { => } local hRow local aCols := &...