Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently May 17th, 2024, 8:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: CSV question
PostPosted: March 8th, 2015, 12:12 am 
Offline

Joined: May 16th, 2008, 4:50 pm
Posts: 368
Location: Berghem The Netherlands
Opus: Opus Pro 9.75
OS: Windows 10
System: `HP
Hi,

I am working on a simple display program that uses a CSV file.
It's almost ready but there is one function i can't figure out how to make it.

What i need is to skip direct to a certain position in the file.
I like to do that by making an input box where i enter a number that corresponds with the line

Like to hear from one of you.


You do not have the required permissions to view the files attached to this post.

_________________
Opus Pro v9.75
Windows 10 on HP EliteBook i7
http://www.csnmedia.nl


For this message Ad Mulders has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: CSV question
PostPosted: March 10th, 2015, 10:10 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
With a flat file database you'll need to start at the beginning and read through every entry until you reach the one you require.

It should be possible using actions:

1. Go to start of file.
2. Set loop variable counter to one
3. Set loop variable limit to required value
4. Loop using "while condition is true" - IE counter is less than or equal to limit
5. Read "next field from file to" your variable
6. Increase loop counter


When loop ends, required value should be in your variable.

I'd be surprised if this hasn't already been covered as a script somewhere on the forum and the OpusScript help has several good examples.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


For this message mackavi has been thanked by : Ad Mulders


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group