Jump to content
Xtreme .Net Talk

Vampie

Members
  • Posts

    4
  • Joined

  • Last visited

About Vampie

  • Birthday 03/14/1977

Personal Information

  • Visual Studio .NET Version
    Visual Studio .NET Professional Edition
  • .NET Preferred Language
    VB.NET

Vampie's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi all, I'm creating an application that will use API call to a web application. Therefore I need a developer API_KEY and API_PASS. Those are specific for my application, so are Then users can login in the application, witch will authenticate on the web application. This returns a logintoken. All these settings should be saved somehow in my application: - API_KEY en API_PASS are application specific - username, userpass and logintoken are user specific What is the best way to save that info? In a binary file? In some application settings? Thank you in advance :-)
  2. HI, Wise words have been spoken here. Agood lesson learned :-)
  3. thank you both. :-) Conditionally it will be then.
  4. hi all, Got a little question about Substring (yes, its a .net 2.0 application i'm using it in) if you use the following code on MyString that is less then 30 characters long, i get an error: (ArgumentOutOfRangeException) :( MyString.Substring(0, 30) I got 2 solutions: Solution 1: If MyString.Length < 30 Then Myfield = MyString Else Myfield = MyString.SubString(0,30) End If Solution 2: MyField = MyString.PadRight(30).Substring(0, 30) What is the best solution? Or is there a method that can take everything if it is less then 30 and only the 30 first chars if it is longer than 30 chars?
×
×
  • Create New...