Search results for query: *

  1. Phill64

    Extracting from a Textfile

    i actually meant to split up those lines, loop through lines, and within that loop, through each "field"
  2. Phill64

    Extracting from a Textfile

    yes, and the easiest way is to save your data is seperated by commas (or other symbol) so you can use a split when you read each line eg: Dim LineData() As String = ALine.Split(","c) populates an array (LineData) with the values between each comma
  3. Phill64

    Resetting boolean variables in array

    yes, i agree with Jm totally, you should not create a 4 by 4 array if you really want a 3 by 3, it is messy coding and wastful, it's like buying 4 cars where only 3 are being driven around.
  4. Phill64

    FileStream

    instead of having all those integers, you should have a structure, or a character class, which contain all those integers, so you only serialize 1 character object. selecteditem is correct, what is your actual error..
  5. Phill64

    Picturebox autosize error

    Just do it yourself then PictureBox1.Width = PictureBox1.Image.Width + 2
  6. Phill64

    Need help developing a "Search" application

    hehe, same thread as other forum ;)
  7. Phill64

    Timing System...

    if you are using VB.NET, this is the right section. and yes, of course there is a way, it is a little more involved than you may think though. have the app listen for a UDP packet, (theyll have to have a list of IP's too, so u know where to send it to) when u hit go, send a UDP packet...
  8. Phill64

    Moved - what can be done about this

    well "VS.NET General Discussion" and "VB.NET General Discussion" confused me! it's only a 1 letter difference, it should say "Visual Studio General Discussion" or "General Visual Studio .NET" anyway to make it different to the vb one, id say alot of people are actually misreading it as VB, as...
  9. Phill64

    Preparing a distribution agreement

    All i can find costs money, fortunetly not much though https://www.docdownload.com.au/document/document.psp?group=legal,54926&document=97849 <-- company to company contract template <-- sorry, that one is QLD specific...
  10. Phill64

    Moved - what can be done about this

    ahha, nevermind about the two forum bit, just my bad eyes, first one is VS not VB. VS is the one with all the "Moved" threads anyhow
  11. Phill64

    Moved - what can be done about this

    Ok, nobody can stop a n00b posting in the wrong forum, but when i came to this forum i was surprised to see pages full of "Moved" threads (at least in the general vb.net forum) Good job the mods are doing shifting these around, however.. when there are so many, it really makes for...
  12. Phill64

    string to single

    you should be using a Decimal Dim d As Decimal = Decimal.Parse("00.1851")
  13. Phill64

    FileStream

    Ok.. what you need to do, is split your LOAD and SAVE methods into two different subs.. for starters that will make it ALOT easier for us to read.. i find it hard to follow your code, it is too bunched up. I don't think you are understanding the concept though. You only need to Load the file...
  14. Phill64

    FileStream

    that's right, an Arraylist is an array of Objects (so anything can be stored in it) and its size expands and shrinks as needed, so you can .remove items or .add items to the array whenever you like.
  15. Phill64

    FileStream

    you almost got it, you are saving two arraylists to the file, so you need to deserialize two objects, and directcast them to their arraylist type no need to use a function, your arrays should be declared on a form level, use a sub and just directly use them in the code. one other error, you...
  16. Phill64

    FileStream

    you will have to overwrite the file, it doesnt work that way. you save the arraylist object to file, and then you load it.. then you overwrite it again with the new updated arraylist. if you use append.. you would end up storing multiple instances in the file.
  17. Phill64

    FileStream

    I recommend you to use two arraylists Private CharName As New ArrayList Private CharFile As New ArrayList when the user creates a new character you will add to these array CharName.Add("a name") CharFile.Add("some\filename\hey.lfr") and use serialization to save and load these arrays to a...
Back
Top