SQLStatement.parameters not working inside .text properly? What am I doing wrong

I'm having trouble with parameters in the SQLStatement class.
Look at this code:
var stmt:SQLStatement = new SQLStatement;
stmt.text = "INSERT INTO user VALUES(@title, @firstname,
@lastname)";
stmt.parameters["@title"] = "Mr";
stmt.parameters["@firstname"] = "Simon";
stmt.parameters["@lastname"] = "Whatley";
trace(stmt.text);
trace(stmt.parameters["@title"]);
Now, you would expect this to trace the stmt.text as
"...Simon, Whatley)"
However, this is my trace:
INSERT INTO user VALUES(@title, @firstname, @lastname)
Mr
So, this means the parameters are working great on their own,
but just not inside the .text property?
Or is this the way it's suppose to show, and to be converted
later on in the execute method?
I've tried both with "@" and ":" as parameter
declaration.

My apologies for not finding this out until after my first
post,
Apparantly it is working fine, just not if you trace the
.text property itself.
When inserting into a database it gets the proper values.
To not make this thread utterly useless; does anyone know any
possible way to trace the .text property with the parameters
properly assigned? Without going "all the way"?

Similar Messages

  • Text wrap not working... What am I doing wrong?

    Hi... I guess I do not know how to set up the text wrap in reflow to follow the size of the container that it is in...
    I have created a text box with the text the size I want and the width and hight of the box is correct... While editing the text it wraps correctly... But the moment I un-select the the text it ignores its container and overflows... Basically goes from being vertical text back to horizontal... I tried the different overflow options in the layout tab but no luck...
    Here are some images for reference... This one is correct and following the wrap (but only happens when i am editing the text)
    But then when I deselect the text... The wrap goes away and this happens... Even though you can see the container is still the same width...
    My plan is to have it be vertical for desktop browser sizes and then be horizontal for mobile and tablet... I was really hoping it was as easy as setting the size of text box... But it is not seeming to work...
    Thank you for any help!!!

    Just tried adobe direct support via chat to get help on this.... OMG I wanted to blow my brains out... So very very unhelpful and a complete waste of time.... They had no idea and said moderators on the forums would be better support... I explained that I had asked this question on there several days ago.... Getting so over adobe... WOW!

  • Hi, I'm doing a poor man's morph project on my motion 4 . It works perfect while on motion , but when I try to import it to tcp it will transfer the photos but not the optical flow fx. what am I doing wrong?

    Hi I don't know if I was able to send this question before but here it goes again. I'am doing a poor man's morph project on my motion 4 program, and it works great while in Motion, but once I try to import it to fcp, it will import the photos but not the optical flow fx, what am I doing wrong? I appreciate you help

    Decided to use cmd A to select all the icons on the desktop and then looked for a right click option.   There it was - the option to move to a folder.   I now have them all in this folder which tells me it holds 157 items.   Now you know why I needed to know LOL
    Thought it might be of help to someone.
    Cheers Mally

  • I can see iMovie in my dock and at the top of the computer but not on the screen.  What am I doing wrong?

    I can see iMovie in my dock and at the top of the computer but not on the screen.  What am I doing wrong?

    Uncheck the box marked Translucent menu bar in the Desktop & Screen Saver preference pane. If that doesn't work, see below.
    My toolbar at the top of my screen is suddenly blackened

  • Hi, every time I attempt to purchase OXS Mountain Lion I get a message that says unable to complete your purchase because "The product distribution file could not be verified. It may be damaged or was not signed." Any idea what I am doing wrong, cheers.

    Hi, every time I attempt to purchase OXS Mountain Lion I get a message that says unable to complete your purchase because "The product distribution file could not be verified. It may be damaged or was not signed." Any idea what I am doing wrong, cheers.

    Welcome to Apple Support Communities
    Press Shift key on boot and purchase OS X 10.8

  • I have a pc and am using the trial version for now.  I have readabout and seen  on other computers, but no matter where i look or follow the dirrections i can not find the mini bridge what am i doing wrong.  thank yo

    i have a pc and am using the trial version for now.  I have readabout and seen  on other computers, but no matter where i look or follow the dirrections i can not find the mini bridge what am i doing wrong.  thank you

    CC and CC2014 are the current versions of Photoshop.  CC stands for Creative Cloud.
    That being cleared up, a respectful request:
    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • Can not use my backup photos, what am I doing wrong?

    I am having problems using the photos from my external hard drive. I switch library, and get all the thumbs up in iphoto. When I try to edit them or export in any way, I am not allowed to. This is very frustrating, can anyone tell me what I am doing wrong?

    n555:
    Welcome to the Apple Discussions. The "!" in the edit window indicates that iPhoto has lost the link to the original file in the Originals folder. Check in the Originals folder to make sure you have the full sized image files in there.
    Did you rename or move any files/folders in the iPhoto Library folder from the Finder? That's one way to get the situation you're experiencing but it would be only for those you tampered with. Since it's the entire library then you've probably fallen victim to the damaged database file problem that hit a lot of users.
    If the full sized image files are there you can try to rebuild the library as follows: launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library. Select all of the options. I'm not optimistic that the rebuild will recover your library but it's worth a try.
    If the rebuild does not work you'll have to start a new library and import the image files from the damaged one as follows:
    1 - rename the iPhoto Library folder that's on the external HD.
    2 - launch iPhoto with the Option key depressed and, when asked, select Create a new library, navigate to the external HD and do so.
    3 - with the new library open, drag the Originals folder from the old library into the open iPhoto window.
    This will give you a new library with the same rolls as the old one. However you'll lose your albums, slideshows, keywords, etc.
    To help protect from this type of problem in the future check out the tip at the end of my signature.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.

  • Message "this app is not compatible with this iPad" What am I doing wrong?

    I am trying to update my apps and when I touch update all I get the message 'this app is ot compatible with this I-pad.  this has never happened before, what am I doing wrong?

    One or more of the apps you are updating is seeing that you have not yet gone to ios5.  All the iwork app changes, for example, will not upgrade until you do.   What you can do is tick them individually.  If that particular app will update, then it will.  If it won't it will tell you, and you can go back and get them later after you do the ious 5 update.  Last night i decided to update before i started the ios 5 upgrade, and there were 16 apps waiting for up date.  All but 5 did update, but not the i works, and 2 others.
    It takes a little longer to do them 1 at a time, but it is better than staring at the stupid 'not eligable' notice.

  • HT4623 When I go to install software update to my phone, it sends the message that I am not connected to the internet. what am I doing wrong?

    When I try to install software update to my phone, it sends the message that I am not connected to the internet. What am I doing wrong?

    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region...change here.

  • My serial number is not long enough to register, what am I doing wrong?

    The serial number on my receipt and on my box are too short for the registration site. does anyone know what I am doing wrong?

    Hello, what program are you talking about? Are you look at the correct number?
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • I have a new iPod touch and an iPad all my videos work on the iPod, but not on the iPad.  What am I doing wrong when I syn with iTunes ?

    iPad 2 does not show videos.  I just get a black screen when I hit the video app.  The videos show as being loaded when connected to iTunes. 

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • IWEB updates not uploading properly, what am I doing wrong?

    I am new to iWEB using FileZilla as FTP and Globat as domain.
    Some updates to my iWEB site do not get loaded to the domain, such as format (colors, underlining) for the hyperlinks. Some of these changes do work. Couldn't get the root cause for it, although I do changes uniformly.
    Besides, there is a delay between some minutes to a day or two for larger changes to show up in the site (such as a hyperlink to a 110MB file) although I could see in FileZilla this file after I uploaded it.
    Followed Old Toad's advice and deleted iWEB cache/preferences file, moved iWEB domain file to the desktop and returned it back - at no avail.
    Globat support was contacted and they told me that any change recorded at FileZilla takes place immediately at the domain.
    What should I try next?
    Appreciate your help on it!

    Moving to Illustrator forum.
    Regards,
    Romit Sinha

  • Some websites do not display properly. I am getting overlapping of menu's. This does not happen with IE. What am I doing wrong?

    I log on to the same wesite on Mozilla and IE. On mozilla the left hand menu overlaps one over the other but the same does not occur with IE, I ask this as I prefer mozilla. Do I need to change any configuration setting. I have a Dell Studio Laptop which is only about 5 months old. Unfortunately I cant post the url because it needs a password to get into the site.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)<br />
    See http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you increased the minimum font size then try the default setting 'none' as a high value can cause issues like you described.
    * Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    * Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    See also [[Websites look wrong]

  • When I try to add motion to a photo, the image just becomes white and won't display properly--what am I doing wrong?

    Although the photo settings display properly and seem to indicate what I want will happen (the sliders work and I can set start and end times, etc.) as soon as I click the check box for "ken burns effect" the image becomes white and stays that way unless I undo my actions.  Very frustrating.  If accepted, it stays white and does not show the original image when the movie is played.  What is going on here?

    On the right hand side of the Photoshop window I used the Levels under "Add and adjustment". The tag for the photo in the upper left corner says IMG_3639 copy.psd@25% (Levels 1, Layer Mask/8)

  • Photos from Win XP will not Sync with 3G iphone what am I doing wrong

    Need some help, just got the iphone and the only thing I can't understand is how to transfer my photos from my PC to the phone. I understand I use Itunes and point it to the folder/photo I want to sync. Itunes goes through it optimizing 1 of 29 photos (only doing 29 photos to start) but then when I go to the phone I have the normal Camera Roll Album and one folder listed. In the folder listed is only one photo which is all messed up.
    I understand the phone takes photos and displays photos at one res, and I thought Itunes doesn't care what res the photo from the PC is cause it optimizes it to be viewed on the phone.
    What am I missing ? and what is this folder that keeps being built ipod photo cache. Any help would be wonderful and yes I did read the "Iphone User Guide" that came with the phone.

    Not sure what the issue is that you are having. Sounds like you are doing the right thing.
    You point iTunes to a folder that contains pictures (or more subfolders that contain pictues...1 subfolder deep). Then tell it to sync. iTunes does its "optimize" thing. Then they sync over. Each subfolder in that folder you pointed to becomes a library.
    eg:
    C:\PHOTOS you point it to.
    C:\PHOTOS\FAMILY
    C:\PHOTOS\WORK
    C:\PHOTOS\FRIENDS
    C:\PHOTOS\WALLPAPER
    C:\PHOTOS\MISC
    are all under it.
    Each of those becomes a library on the iPHone (Family, Work, friends, etc)
    Photos from those folders go to phone (and photos from the root you pointed it to).
    The extra folder it makes (think it tries to mark it hidden unless you have it set to show hidden files) is just stuff for iTunes to keep track (like HASH data and other stuff) to know what it has synced so it can tell what is new and what is old if you add more photos or folders later.
    I have some huge images on my PC that I sync over without issue. iTunes scales them down when syncing to the phone (the whole optimize stuff).
    Message was edited by: DaVBMan

Maybe you are looking for