Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2003, 12:41 PM
Member
 
Join Date: May 2003
Posts: 35
Default Database and Print questions

I am investigating the best Flash standalone third party tool to integrate kwith our application. I have installed the SWFKit demo and played a bit.

Although I didn't test the DB access speed yet, I'm impress with the level of control provided by SWFKit. I did encounter few problems though:

1. record = conn.Execute("select textValue from options where ID=21"); returns undefine
while
record = conn.Execute("select * from options where ID=21"); returns the proper value.

The Flash application is already working in conjonction with ASP/IIS on an standalone computer and the record = conn.Execute("select textValue from options where ID=21"); works fine. Why it doesn't work within SWFKit?

2. How can I used a field name instead of its numerical position in the DB table?

var1 = record.Fields("firstname").Value.toString();
instead of
var1 = record.Fields(2).Value.toString();

Also, printing is another area where we need functionality. How SWFKit can help us print formatted report like with CrystalReport? I gather that you can output the value to a text file but how can you control the text appearance (Bold, font size, etc).

Thankx.
Reply With Quote
  #2 (permalink)  
Old 08-25-2003, 11:29 PM
Member
 
Join Date: Jan 2003
Posts: 54
Default Re:Database and Print questions

Can't be of anyhelp for the print pb, but 4 your database question:

1°) when u call a SQL statement you should allways put the key field (if any) in your SQL string if you want a single value or not, anyhow you will get an empty result.

2°) u can use record.Fields["firstname"].Value.toString(); if u want to used the field name 'cuze it's not very eazy to deal with field number.

But, in most cases it's quicker and much more evident to use field numbers when dealing with special fields that have particular values.
__________________
http://www.alyze.com - http://www.ecomzone.net - http://www.alisook.com -http://www.madcha.com - http://www.i-multimedia.fr -
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:55 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.