Note that there are some explanatory texts on larger screens.

plurals
  1. POinvalid argument delphi
    primarykey
    data
    text
    <p>I get an error while saving a string. the error is: prject prKlanten.exe raised exeption class EVariantInvalidArgError with message 'invalid argument'.</p> <pre><code> var fmOrder: TfmOrder; orderid: string; implementation {$R *.dfm} uses unDm, unInloggen, unKlant, unKeuze, unbeheer, unAccount, unOrderChange; procedure TfmOrder.btOpslaanOClick(Sender: TObject); begin dm.atOrder.open; dm.atOrder.Append; dm.atOrder ['OrderStatus'] := ('Aangemeld'); dm.atOrder ['klantID'] := fminloggen.userid; dm.atOrder ['OrderDatum'] := leOphaalDatum.text; dm.atOrder ['Opmerkingen'] := leOpmerkingen.text; fminloggen.userid := dm.atOrder ['KlantID']; dm.atOrder ['OrderID'] := fmOrder.orderid ; dm.atOrder.post; fmOrderChange.ShowModal; end; end. </code></pre> <p>the line : </p> <pre><code>dm.atOrder ['OrderID'] := fmOrder.orderid ; </code></pre> <p>gives the error. I spelled everything correctly en the fminloggen.userid does works.</p> <p>does anyone know what the problem is.</p> <p>thanks in advance!</p> <p>Jasper</p> <p>I did the same in an other form:</p> <pre><code>public var inlognaam : string; userid : string; end; var fmInloggen: TfmInloggen; implementation {$R *.dfm} uses unKlant, unbeheer, unaccount, unKeuze,unDm; procedure TfmInloggen.BTinloggenClick(Sender: TObject); var Gevonden: boolean; begin dm.atInlog.open; Gevonden := false; while (not Gevonden) and (not dm.atInlog.eof) do begin if dm.atInlog['email'] = leUser.Text then begin Gevonden := true ; fminloggen.inlognaam := dm.atInlog['email']; fminloggen.userid := dm.atInlog['KlantID']; end else dm.atInlog.Next end; if Gevonden and (dm.atInlog['Password'] = lePassword.text) then if dm.atInlog['Autorisatie'] = '1' then begin fmKlant.Caption := dm.atInlog['email']; fmKeuze.ShowModal; end else if dm.atInlog['Autorisatie'] = '2' then begin fmKlant.Caption := dm.atInlog['email']; fmBeheer.ShowModal; end; dm.atInlog.Close; end; </code></pre> <p>except this is with userid</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload