Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help ...

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I don´t have any idea to fix this problem, (I make programs is VB)I have:
proid[0]=edit1;this is a text box
var.data = proid->text.toint();
I need to add the string "100" before converts to integer, but I like have a varible somethig like this

a = "100" + edit1
var.data = toint(a)

Why need to do.
Thks
 
If you are using character arrays, then do this
Code:
char a[80]; // or whatever you max is
strcpy(a, "100");
strcat(a, edit1);

If you are using the STL strings, then things are easier (for a VB programmer):
Code:
string a;
a = "100" + edit1;




James P. Cottingham

All opinions are mine alone and do not necessarily reflect those of my employer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top