Search found 688 matches: loop

Return to advanced search

Re: Help with HB_REALLOC ERROR 9009

Hi Marc To Avoid Memory leaks, within the loop I call an external function each time I read a xml file, close it and turn to nil each class instance. For every 400 files I do a HB_GcAll() and a SysRefresh(), the biggest xml file is just 29 kb ...
by Adolfo
Wed Mar 20, 2024 8:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help with HB_REALLOC ERROR 9009
Replies: 5
Views: 1092

Re: Help with HB_REALLOC ERROR 9009

Run out of memory ? Maybe you can put a part of this code inside the loop en show the result while running. Than you see if there is a memory leak. cErrorLog += "   Hardware memory: " + ;                    cValToChar( Int( nExtMem() ...
by Marc Venken
Wed Mar 20, 2024 8:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help with HB_REALLOC ERROR 9009
Replies: 5
Views: 1092

Re: GetHostByName( GetHostName() )

... the local IP address on the desired subnet: 1. Enumerate Adapters: Use WSAEnumNetworkAdapters to enumerate all network adapters on your system. Loop through each adapter and check its network mask and IP address using GetIpAddrTable. Look for an adapter where the network mask matches the subnet ...
by Antonio Linares
Wed Mar 06, 2024 9:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetHostByName( GetHostName() )
Replies: 1
Views: 157

Re: JSON2DBF adapter

... of black. Thus, you have the `do while/enddo` not passing parameters like `[bFor]`, `[bWhile]`, `[nNext]`, `[nRec]`, `[lRest]`. Programming the loop and conditions is more readable, maintainable, and generally more understandable. I would leave it as is. But the lines would be fine if you could ...
by Otto
Sun Feb 04, 2024 8:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: JSON2DBF adapter
Replies: 3
Views: 503

Re: Mr. Rao EOF() BOF() not working wirh RecSet

What about calling oData:MoveFirst() before starting the Do while Loop ?
by anserkk
Fri Feb 02, 2024 4:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mr. Rao EOF() BOF() not working wirh RecSet
Replies: 3
Views: 416

Re: Creating table with Trichedit

Anserk, it gives me a corrupt file error and office won rd doesn't open table.rtf for me I explain you I have a Do while loop Function Print_Schedule() Local aTable,a1,n,aTemp,x,aFlags:={} local c1,c2 local cFileName := "table.rtf" local oFile := FCreate(cFileName, 0) aTable ...
by Silvio.Falconi
Thu Jan 25, 2024 10:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating table with Trichedit
Replies: 18
Views: 1450

Re: erase files

... starts it creates the folder c:\dbtmp if not alreacy exist then uses aDIr to create an array of all files in c:\dbtmp and I just use a For\Next loop of aDir and ferace the files ... Rick Lipkin aDIR := DIRECTORY( "C:\DBTMP\*.*", "D" )IF EMPTY( aDIR )   IF ...
by Rick Lipkin
Wed Jan 24, 2024 7:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1536

Re: Classe TGif

... time, transparent color index, and block terminator (a byte containing the value 0 It should have an application extension that specifies the looping behavior of the animation. The application extension should start with a byte containing the ASCII character “!”, followed by a byte containing ...
by Antonio Linares
Fri Dec 08, 2023 8:22 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Classe TGif
Replies: 9
Views: 1657

Re: copy a row of xbrowse

... an approach to achieve this: 1. **Modify Copy Functionality**: Instead of copying a single row to `aCopy`, copy all selected rows. You can use a loop to go through the selected rows and add them to `aCopy`. 2. **Modify Paste Functionality**: When pasting, iterate over `aCopy` and add each row ...
by Otto
Tue Dec 05, 2023 3:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5771

hash for storing variables

Hello friends, static h := {=>} h['mycParts'] := {"date=1900-11-21", "time=16:00"} // Correct loop syntax for iterating over the array in the hash FOR EACH cTmp IN h['mycParts'] ? cTmp NEXT But when I try to use h["cTmp"] := "" FOR EACH ...
by Otto
Tue Nov 28, 2023 7:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: hash for storing variables
Replies: 7
Views: 525

Re: Calculate total pages

... Starts a new document in the device context. - `StartPage(oDevice:hDC)`: Begins a new page in the document. 5. **Content Rendering:** - The loop or logic to iterate through `aFiles` is not shown, but within that context: - `hMeta := GetEnhMetaFile(aFiles[nFor])`: Retrieves an Enhanced Metafile ...
by Otto
Fri Nov 24, 2023 6:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5857

Fivewin controls similar to javascript elements

... operating system dispatches messages (like mouse clicks, key presses, etc.) to applications, which are then handled by the application's message loop. This is somewhat analogous to events in the JavaScript DOM, where events are dispatched to nodes in the DOM tree. Event Listeners/Handlers: In ...
by Otto
Tue Nov 21, 2023 7:33 am
 
Forum: mod_harbour
Topic: Fivewin controls similar to javascript elements
Replies: 2
Views: 1123

Re: Help splitting up a character address string

... State and Zip .. however the Address excel column has street,city,state and zip concatenated into one excel column .. so the trick is as I loop through the for\next loop ... that I run the conversion from the value "City,State ZIP" into it individual fields .. I don't think ChatGPT ...
by Rick Lipkin
Wed Nov 15, 2023 10:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help splitting up a character address string
Replies: 10
Views: 599

Re: ID of the new process

... Do Set objProcess = colMonitoredProcesses.NextEvent WScript.Echo "New Process ID: " & objProcess.ProcessID Loop ``` Keep in mind that this method continuously monitors process creation, so you may need to implement some logic to filter out the specific process ...
by Antonio Linares
Tue Nov 14, 2023 2:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ID of the new process
Replies: 2
Views: 321

Re: Announcing DrXlsx 1.0 by Charles Kwon

... XLSwriter RECNO() = 109571 MEMORY( 3 ) = 31044 // have set Limit at 32 Kb it is just before available Memory "crash" so leave loop i "think" it have to do that ADO "read/write" while XLSwriter "read" all to RAM before "write" when "break" ...
by CharlesKwon
Sun Aug 27, 2023 4:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Announcing DrXlsx 1.0 by Charles Kwon
Replies: 32
Views: 3853
Next

Return to advanced search