User Profile

Collapse

Profile Sidebar

Collapse
Dragas
Dragas
Last Activity: Aug 21 '08, 07:43 PM
Joined: Aug 10 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Dragas
    replied to C# - How to Find a "#" Character in a String
    in .NET
    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 ...
    See more | Go to post

    Leave a comment:


  • Dragas
    replied to C# variable declaring
    in .NET
    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...
    See more | Go to post

    Leave a comment:


  • Dragas
    replied to C# variable declaring
    in .NET
    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 replys
    See more | Go to post

    Leave a comment:


  • Dragas
    started a topic C# variable declaring
    in .NET

    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.......
    See more | Go to post
No activity results to display
Show More
Working...