[Solved] Syntax error. in query expression -Delphi

[ad_1] Give a try; Procedure TFNewCarAct.BtnSaveClick(Sender: TObject); begin adoQueryCCA.Close(); adoQueryCCA.SQL.Clear; adoQueryCCA.SQL.Add(‘INSERT INTO tblcaractivity ([CCarID],[Date],[Millage],[SerRcd],[EOType],[EOQunt],[AirFil],[GOil])’); adoQueryCCA.SQL.Add(‘VALUES(:CCarID,:Date,:Millage,:SerRcd,:EOType,:EOQunt,:AirFil,:GOil)’); adoQueryCCA.Parameters.ParamByName(‘CCarID’).Value:= Integer(ComboBox2.Items.Objects[ComboBox2.ItemIndex]); adoQueryCCA.Parameters.ParamByName(‘Date’).Value:= Edit6.Text; adoQueryCCA.Parameters.ParamByName(‘Millage’).Value:= Edit1.Text; adoQueryCCA.Parameters.ParamByName(‘SerRcd’).Value:= memo1.Text; adoQueryCCA.Parameters.ParamByName(‘EOType’).Value:= Edit2.Text; adoQueryCCA.Parameters.ParamByName(‘EOQunt’).Value:= Edit3.Text; adoQueryCCA.Parameters.ParamByName(‘AirFil’).Value:= Edit4.Text; adoQueryCCA.Parameters.ParamByName(‘GOil’).Value:= Edit5.Text; adoQueryCCA.ExecSQL; ShowMessage(‘Done’); end; procedure TFNewCarAct.FromShow(Sender: TObject); begin ADOQueryCT.Open; while Not ADOQueryCT.Eof do begin ComboBox1.Items.Add(ADOQueryCT.FieldByName(‘Name’).AsString); ADOQueryCT.Next; end; ADOQueryCT.Close; if ComboBox1.Items.Count > 0 then ComboBox1.ItemIndex := … Read more

[Solved] What is the outcome of this function? [closed]

[ad_1] This sets x to a value from -15 to 15 (inclusive) based on the voltage at pin analogPort. 15 means 5 volts and -15 means 0 volts. This value is then used to set a delay between 100 (-(pow(2*15,2))+1000) and 1000 (-(pow(2*0,2))+1000) since the square of 2*x and 2*-x yield the same number. In … Read more

[Solved] How to show a dropdown type of menu on tap of button? [closed]

[ad_1] *<Button android:textAllCaps=”false” android:id=”@+id/topic_spinner” android:layout_weight=”1″ android:layout_width=”0dp” android:layout_height=”wrap_content” android:gravity=”left|center_vertical” android:background=”@android:drawable/btn_dropdown” android:singleLine=”true” android:text=”Choose a topic” android:textSize=”20dp” > </Button> Button topic_spinner; topic_spinner.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { final String[] items = new String[]{“Topic1”, “Topic2”, “Topic3”}; ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_dropdown_item, items); new AlertDialog.Builder(getActivity()).setTitle(“The Topic”).setAdapter(adapter, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) … Read more

[Solved] Why we need to implement certain methods when we extend classes in android? [closed]

[ad_1] They are abstract classes/methods and need to be overridden. You can choose to override the functionality or just let it do what the parent classs is doing. An abstract class is a class that is declared abstract—it may or may not include abstract methods. Abstract classes cannot be instantiated, but they can be subclassed. … Read more

[Solved] How add letter for the folders start

[ad_1] As noted in the comments: you should actually move/rename the folder, not just print out its name. DirectoryInfo dir = new DirectoryInfo(“C:/Users/Wiz/Desktop/folder/”); foreach (var item in dir.GetDirectories()) { item.MoveTo(Path.Combine(item.Parent.FullName, “a” + item.Name)); Console.WriteLine(“a” + item.Name); } Console.ReadLine(); 1 [ad_2] solved How add letter for the folders start

[Solved] Limiting remainder in php

[ad_1] A billion ways to do this. The task for you here is to pick one. Method 1 – round() This will just round your number. The exact rules can be found in the PHP.net documentation. round($someNumber, 2); Method 2 – floor() Floor will round the number down floor($someNumber, 2); Method 3 – ceil() Opposite … Read more

[Solved] Notice: Undifined variable: [value] [duplicate]

[ad_1] You do not check if the following variables are set before you assign them. $_POST[‘naam’] $_POST[‘wacht’] As you did with $_POST[‘login’] you can use isset to check they exist before assignment. if (isset($_POST[‘naam’] && isset($_POST[‘wacht’]) { // Do something… } In addition to this in the query you are using the variables $gebruikersnaam and … Read more