Home · Articles · Downloads · Forums · LinksSeptember 05 2010 20:36:08
Navigation
Home
Articles
Downloads
FAQ
Forums
Contact Me
Links
Photo Gallery
Search
Register
Latest Articles
5GL:Property, Method...
Limnor vs. Computer ...
Codeless vs Coding
Community Conduct
View Thread
Limnor Community Portal | General Limnor Discussion | How to...
Author Using LoopWhile
drumdave
Member

Posts: 43
Location:
Joined: 13.08.07
Posted on 26-01-2010 12:31
I'm trying to create a loop expression that performs an Action List for every record in a DataTable. The Action List works fine, but I can't seem to come up with "False" condition that will end the loop. Any ideas?

Basically, the Action List compares two fields within a record and then moves to the next field. The loop then repeats the comparison and moves to the next field until all the records have been checked. But once I get to the last record I'm not sure how to tell the loop to stop. I can't use any values within the last record (such as an ID field) as an indication that I've reached the end, because I'm always adding new records, so I never know which record will be the last record when the loop expression is started.

Thanks in advance for the help!
Author RE: Using LoopWhile
yw
Administrator

Posts: 670
Location: ***
Joined: 23.06.05
Posted on 26-01-2010 20:14
No need to create a loop by moving record forward. You may create an action using BatchExecute method of the DataTable. This action requires an action list as its parameter. When this action is executed, the action list is executed for each record. Suppose the Datatable has 100 records, then the action list will be execute 100 times, each time the Fields property is the current row of data, CurrentRowNumber property indicates the record number, 0 indicates the first record, 1 indicates the second record, etc.
Author RE: Using LoopWhile
frangonve
Member

Posts: 110
Location: Madrid (Spain) until I can live at the beach
Joined: 18.06.08
Posted on 07-02-2010 02:09
One step more and more doubts

Now the different labels have to show the correct values and being updated when new fields are added to the trades table and when the settings table is updated and when the system time changes.

Example:

Label17 shows the total number of trades in selected period:

if period=0 -> number of trades today
if period=X -> number of trades in the last X hours

number of trades is the number (count?) of records filtered by the >=@Date Where clause

Label17.SetText action has to be linked to the RowCount of an EasyGrid???
with Where Clause @Date.

@Date = <Today> 00:00 if period=0
@Date = Now.AddHours (-{Form1.DataSet1.Fields.Period}) if period not 0

How can the text in Label17 and the rest of labels)be refreshed as the system time changes (once per minute)?

Edited by frangonve on 07-02-2010 02:10
Author RE: Using LoopWhile
yw
Administrator

Posts: 670
Location: ***
Joined: 23.06.05
Posted on 07-02-2010 03:07
If the data to be displayed cannot be included in a database query then Set Property action can be used to set the Text property. The question is at which events to execute such actions.
Please download a new version from http://www.limnor.com/Studio/LimnorStudioSetup.msi. EasyDataSet and EasyGrid have an event DataFilled, and an AfterQuery event, which can be used to execute Set Properties actions.
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Shoutbox
You must login to post a message.

yw
16/04/2010 17:25
It is available at http://www.limnor.com/dow
nloads/LimnorPerformerRef
erences.pdf


tangocash
15/04/2010 13:03
Hi limnor performers reference pdf link in rapidshare is down. I really need to download it. aj.soho@gmail.com

yw
28/08/2009 11:31
try set RThreshold = 1

Fredpret
27/08/2009 15:52
I cannot receive via the rs232 performer yet hyper terminal works. Any suggestion or help will be most welcome. Thanks

admin
06/05/2009 14:30
Fredpet - please post your inquiry in the forums so others can comment and benefit from the replies.

Fredpret
06/05/2009 10:46
I cant transfer data to a page variable. i thought it was exrtemely simple but no go. I shall be very grateful for any help

lammies
16/03/2009 10:45
will excel and word performers work with MSP Office 2007?

Raven
27/12/2008 10:48
Limnor Rocks !!!

piyushvishvas
13/07/2008 14:24
Limnor is great tool for developers. piyushvishvas wwww.vishvas.org

SOE
18/12/2007 15:06
Project browser and action list are awesome ways to help program visually. It truly allows you to organize, see the logic involved, and help program. You don't have this view point using traditio

Shoutbox Archive
Forum Threads
Newest Threads
Scraping revisited
TreeviewX change icon
Scraping HTML or CSV...
Treeview help
Old limnor
Hottest Threads
how to make repor... [33]
Filling database ... [31]
my project [31]
Users Management [30]
Possible Bugs Rep... [26]