Search found 23 matches: iterate

Return to advanced search

Re: copy a row of xbrowse

... 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 to `oBrw:aArrayData`. Make sure to reset `aCopy` after pasting. 3. **Handle Unique Identifiers**: To avoid issues ...
by Otto
Tue Dec 05, 2023 3:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5789

Re: Calculate total pages

... 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 from `aFiles`. ...
by Otto
Fri Nov 24, 2023 6:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5878

Re: Help splitting up a character address string

... Excel files. 2. Parse the Excel data: Extract the data from the Excel file, specifically from the worksheet that contains the addresses. You can iterate over the rows and columns of the Excel file to retrieve the relevant data. 3. Connect to the database: Use the appropriate database connectivity ...
by frose
Wed Nov 15, 2023 11:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help splitting up a character address string
Replies: 10
Views: 602

Re: Combinaciones de letras

... ha hecho: This program uses a nested loop to generate all possible combinations of three or more letters in the given word. The outer two loops iterate over all pairs of letters in the word, and the inner loop iterates over all remaining letters in the word to generate a combination of three ...
by Antonio Linares
Tue Dec 06, 2022 10:27 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Combinaciones de letras
Replies: 12
Views: 1005

Re: How do you handle User Access on your FW App

... Thanks for the great Idea :idea: I got it sorted now.. defining :nID for each object I wish to control (enable/disable) defined in user table.. iterate these objects based also on defined :nID of Dialog/Window.. Before I used to define menu to access dialogs.. now I control object access per ...
by fraxzi
Wed Aug 22, 2018 3:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do you handle User Access on your FW App
Replies: 5
Views: 968

Re: ADO and Lock

... Invoice No field. When you try to insert a new record with an existing invoice number it will fail. After recovering, have the code continue to iterate until successful. Like I said above, IMHO auto increment fields do not make good invoice numbers. If you ever merge data, replicate, res-structure, ...
by reinaldocrespo
Wed Aug 05, 2015 2:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO and Lock
Replies: 27
Views: 6944

Re: TDataRow and ADO questions

Elvira, Thank you very much. And what is the equivalent please for: SUM FIELD->TOTAL TO nt Thanks. You can just iterate through the records adding the field values. Or, better, you can use a query like this: SELECT SUM( Total ) AS nt FROM MyTable WHERE MyCondition and ...
by Enrico Maria Giordano
Wed Jun 12, 2013 10:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDataRow and ADO questions
Replies: 48
Views: 11549

New FTDN March/Marzo 2013 (FWH 13.03)

... control when the mouse is moved over it. http://forums.fivetechsupport.com/viewtopic.php?p=141302#p141302 * New: samples\darrell.prg shows how to iterate a XML searching for a specific node and listing its branches: http://forums.fivetechsupport.com/viewtopic.php?p=141398#p141398 * Enhancement: ...
by Antonio Linares
Thu Mar 28, 2013 11:33 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN March/Marzo 2013 (FWH 13.03)
Replies: 0
Views: 2502

Re: Processing XML Data

Darrell, This example shows how to iterate those nodes: (I have renamed your XML to test.xml) darrell.prg #include "FiveWin.ch"function Main()      local oXmlDoc  := TXmlDocument():New( ...
by Antonio Linares
Wed Mar 13, 2013 12:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Processing XML Data
Replies: 10
Views: 5957

Re: Processing XML Data

Darrell,

Each node (in the code we call them "tag") has a Depth(), so once you find "Detail", the next will have a Depth() + 1, so you iterate through them until the Depth() becomes the same as the one that "Detail" has :-)
by Antonio Linares
Wed Mar 13, 2013 12:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Processing XML Data
Replies: 10
Views: 5957

Re: Disable a radio button

You can iterate through oDlg:aControls till oDlg:aControls[ i ]:nId is 105 and then oDlg:aControls[ i ]:Disable().

EMG
by Enrico Maria Giordano
Mon Dec 13, 2010 7:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Disable a radio button
Replies: 5
Views: 838

Re: ADDING DATA INTO AN ARRAY....[X,Y]

... and red balls, although I may have misunderstood. If so I would have thought that you would intialise an array to all not occupated, and then iterate through marking which ones are occupated. This code could, presumably, also check for any double ups. Your array would have a start date and ...
by xProgrammer
Mon Feb 22, 2010 11:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADDING DATA INTO AN ARRAY....[X,Y]
Replies: 14
Views: 4184

Re: Array content to ADS SQL statement

How can I iterate and translate this to ADS SQL statement to be able to update a table? I am not sure whether I understood your requirement exactly Assuming Element1, Element2 are the Column names of your Table Update Query cSql:="UPDATE ...
by fraxzi
Sat Jan 09, 2010 12:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Array content to ADS SQL statement
Replies: 4
Views: 888

Re: Array content to ADS SQL statement

How can I iterate and translate this to ADS SQL statement to be able to update a table? I am not sure whether I understood your requirement exactly Assuming Element1, Element2 are the Column names of your Table Update Query cSql:="UPDATE ...
by anserkk
Fri Jan 08, 2010 9:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Array content to ADS SQL statement
Replies: 4
Views: 888

Array content to ADS SQL statement

... 'value1'},;                 {'elemnet2', 'value2'} }  How can I iterate and translate this to ADS SQL statement to be able to update a table? Best regards, Fraxzi
by fraxzi
Fri Jan 08, 2010 8:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Array content to ADS SQL statement
Replies: 4
Views: 888
Next

Return to advanced search