🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3213

This ADO stuff is confussing me, help.

#3213
From: bmkiss67
Date: Mon, 09 Dec 2002 17:06
13 lines
1480 bytes
With coded below only works if the AddBuilding->Text is an integer, if it's
a string it gives me an error that says: "Application uses a value of the
wrong type for the current operation."  Can anyone tell me what's going on?

  ActionQuery->Close();
  ActionQuery->SQL->Clear();
  ActionQuery->SQL->Add("Insert into Roomlist values(:Building,:Room)");
  ActionQuery->Parameters->ParamByName("Building")->Value =
AddBuilding->Text;
  ActionQuery->Parameters->ParamByName("Room")->Value = AddRoom->Text;
  ActionQuery->ExecSQL();

Thanks
Technical Details
Message-ID: <3df4cd93@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,41d6cccc0e0ade3,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-12-09 09:12:06 PST
Reply-To: "bmkiss67" <bmkiss67@cablespeed.com>
From: "bmkiss67" <bmkiss67@aaahawk.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: This ADO stuff is confussing me, help.
Date: Mon, 9 Dec 2002 12:06:19 -0500
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 209.244.214.6
Message-ID: <3df4cd93@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039453587 209.244.214.6 (9 Dec 2002 09:06:27 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail