Jump to content
Xtreme .Net Talk

keitsi

Avatar/Signature
  • Posts

    30
  • Joined

  • Last visited

Everything posted by keitsi

  1. Wow, thanks! I never would have found that out by myself :P
  2. nice Great, thanks!
  3. Currently I am using this function (LOL) Public Function ExistsInColl(ByRef col As Collection, ByVal Index As String) As Boolean On Error GoTo ErrNotInColl Dim tmp tmp = col(Index) Return True ErrNotInColl: On Error GoTo 0 Return False End Function Errors seems to lag my .NET (at least while not running straight from .exe) and I'm finding this kinda annoying... anyone happen to know a better way? :D Yea, should use Try..catch. Just ported it from VB6, which does not have a way to get around this that I know of. Just to mention.. also something similar to collection should be okay. I mean something more advanced that arrays but not as heavyweight as DS / Xml / etc objects.
  4. dim sr as streamreader = new streamreader("c:\test.txt") do until sr.peek =< 0 debug.writeline sr.readline loop if you want to whole file at once you could try binary mode
  5. I searched all over the forums and still didn't find a neat way to do this :) Shortly: Is it possible to loop through all design time created (form) classes? I do not mean form objects but the classes. I do not need to detect if the form class has a visible object or anything, just wanna create a new instance of every form class I created design time. i.e. something like this (of course this does not work :eek: ) Dim frm As Form For Each SomeType In MyProject.Typecollection If SomeType Is form then frm = New SomeType DumpFormContentsToFile(frm, "c:\" & frm.name & "_dump.txt") frm.close endif Next msgbox "Contents of all forms were dumped to C:\" The reason for this is that I want to be able to dynamically 'dump' all the Texts inside form to a custom formatted text file, for multilingual translator class. I think i found a neat way to make my app multilingual, without messing up the desing time view or making any changes during design time. =) Thanks mates. For sure I will post the class here if I get it done someday. edit: vbulleting messing up my smilies
×
×
  • Create New...