If understanded u well u can do like this:
string example = "1234#56890 ";
bool yesno = false;
for(int i=0; i<example.Lengt h; i++)
{
if(substring(i, 1) == "#") yesno = true;
}
So if # exist in string yesno will be true or u can pick up i as pointer where
in string it is ....
Also if u wana cast out spaces from string u can use ...
User Profile
Collapse
-
Well have some bookkeeping prog which is writen in VFOX as client,
we migrating to C# and porting most code.
In VFox we used alot &var1 (macro sign) which do that what i want.
All forms, classes ... are in tables, so i from tables take all i need
and making forms, toolbars, menus on fly and rest things ...
So that would come handy but if cant cant.
Anyway thx all for r...Leave a comment:
-
Ok sorry for bad typing but problem is:
string var1 = "var2";
So var1 have name of my new variable i want to declare
// code i have problem //
var2 = "It works now";
Thx for replysLeave a comment:
-
C# variable declaring
Ok my quiestion is about varibles something like in VFox:
string variable;
for(int i=0; i=10 ; i++)
{
variable = "mem"+i.SoStrin g();
// now part i need some solution in fox would be like this &variable
string &variable;
}
mem2 = "Somthing.. .";
So question is easy way to declare variable from data in other variable.......
No activity results to display
Show More
Leave a comment: