Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: May 11th, 2008, 10:14 am 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
Code:

var db = new Database("FILEDSN=bsff.dsn");
var records = db.ExecuteSQL("SELECT * FROM `table1`WHERE `problem` = pr_load  ORDER BY `id` DESC");
var num_records = records.GetNumberOfRecords();
for (num=0; num< num_records; num++) {
   ap[num] = records.aspect;
   records.NextRecord();
}


And then listbox to display:
<ap[0]>
<ap[1]>
<ap[2]>
.......

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: May 11th, 2008, 12:13 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
I still don't know if anything is set-up to execute your code... for example is it part of a function() and you are calling it with some Button.

It just seems to me that your variable
'pr_load' has no initial value that matches 'pr' field, AND... either nothing is changing 'pr_load' value or initiating your code (except when page first starts).

Use debug.trace to see what 'pr_load' is doing. Or set your script console to come up on Preview... and look at the watch-variable Tab there (hint: right click to choose your variable).

I am out of ideas.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 58 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