Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please help me. How I can add value from Form1->Edit7->Text text field into SQLite database version 3.1 ? How do it via db.execDML() instruction ? I must convert this data ?
When I add value like 7,8 etc. this work correctly, i use instruction:
db.execDML("insert into emp values (1,2,3);"); // <- This works, but I don't know how I can add value from Form1->Edit7->Text <- please help me

I use Borland C++Builder 6 Personal + SQLite database version 3.1
Posted
Updated 29-Oct-13 7:56am
v4
Comments
[no name] 30-Oct-13 12:10pm    
#include <stdio.h>
#include<string.h>

char f[10000];
char factorial[1010][10000];

void multiply(int k)
{
int cin,sum,i;
int len = strlen(f);
cin=0;
i=0;
while(i<len)
{
sum=cin+(f[i] -="" '0')="" *="" k;
f[i]="(sum" %="" 10)="" +="" '0';
i++;
cin="sum/10;
}
while(cin">0)
{
f[i++] = (cin%10) + '0';
cin/=10;
}
f[i]='\0';
for(int j=0;j<i;j++)
factorial[k][j]=f[j];

factorial[k][i]="\0" ;
}
void="" fac()
{
int="" k;
strcpy(f,"1");
for(k="2;k<=1000;k++)
multiply(k);
}
void" print(int="" n)
{
int="" i;
int="" len="strlen(factorial[n]);
printf("%d!\n",n);
for(i=len-1;i">=0;i--)
printf("%c",factorial[n][i]);
printf("\n");
}
int main()
{
int n;
factorial[0][0]='1';
factorial[1][0]='1';
fac();
while(scanf("%d",&n)==1){
print(n);
}
return 0;
}
[no name] 31-Oct-13 1:21am    
I don't understand. I want only find solution what I can put valute from "Form1->Edit7->Text" text field into SQLite 3.1 database. I don't find there reply for my question...
Bernhard Hiller 31-Oct-13 7:15am    
What's your problem?
- Reading the value of that TextBox?
- Setting up the SQL command text?
- Anything else?
[no name] 31-Oct-13 13:39pm    
Yes, I want Reading the value of that TextBox (Form1->Edit7->Text) and next I want put this value into SQLite 3.1 database <- I dont't know how do it, please help me.
[no name] 10-Nov-13 3:01am    
can someone help me?

1 solution

Yes, I want Reading the value of that TextBox (Form1->Edit7->Text) and next I want put this value into SQLite 3.1 database <- I dont't know how do it, please help me.
 
Share this answer
 
Comments
[no name] 10-Nov-13 11:30am    
can someone help me?
[no name] 17-Nov-13 4:05am    
Please help me. I want Reading the value of that TextBox (Form1->Edit7->Text) and next I want put this value into SQLite 3.1 database <- I dont't know how do it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900