Re: Printing a random access file



Strings are stored as Unicode so U might be better off using LenB(Player)

"Henning" <computer_hero@xxxxxxxxxxxx> skrev i meddelandet
news:43c2fbbc$1$98288$57c3e1d3@xxxxxxxxxxxxxxxxxxx
>
> "james" <ds@xxxxxxxxxxx> skrev i meddelandet
> news:dpu3at$geb$1@xxxxxxxxxxxxxxxxxxxxxx
> > Can someone tell me why the code below doesn't print out all the data
> from
> > the random access file, it only prints out the headings and player.id.
> For
> > the rest of the characters, it prints out a [] sort out rectangle.
> >
> > Thanks
> >
> >
> > Dim Index As Integer
> > Filename = App.Path & "\players.dat"
> >
> > Printer.FontSize = 11
> > Printer.FontBold = True
> > Printer.FontUnderline = True
> > Printer.Print "Players"
> > Printer.Print
> > Printer.FontSize = 10
> > Printer.FontBold = False
> > Printer.FontUnderline = False
> > Printer.Print "ID"; Tab(5); "Player 1 ID"; Tab(5); "Player 1 Name";
> Tab(5);
> > "Player 2 ID"; Tab(5); "Player 2 Name"; Tab(5); "Score"
> > Printer.Print
> >
> > Open Filename For Random As #3 Len = Len(Player)
> > NumberOfPlayers= LOF(3) / Len(Player)
> > For Index = 1 To NumberOfPlayers
> > Get #3, , Player
> Get #3, Index, Player
> > Printer.Print Player.PairID; Tab(5); Player.Player1ID; Tab(5);
> > Player.Player1Name; Tab(5); Player.Player2ID; Tab(5);
Player.Player2Name;
> > Tab(5); Player.SquadScore
> > Next Index
> > Close #3
> >
> > Printer.EndDoc
> >
> >
>
>


.



Relevant Pages

  • Re: I agree.
    ... >> why not put strings when other guy is on run..or just to keep someone ... > to take out a player, or keep them behind a bunker. ... Prev by Date: ...
    (rec.sport.paintball)
  • Re: Printing a random access file
    ... Strings are /not/ stored on disk as Unicode ... The declaration of the UDT Player would be helpful ... Prev by Date: ...
    (comp.lang.basic.visual.misc)
  • Re: How to check variables for uniqueness ?
    ... characters is the sequence SS. ... is simply capitalizing strings. ... The fact that case mapping in English /is/ simple is neither here not ... That is a fair criticism of the Unicode position. ...
    (comp.lang.java.programmer)
  • Re: Dangerous behavior of CString
    ... If I'm reading a data file or serial port or something, if the raw data are multibyte but the compilation is Unicode or vice-versa, then sometimes the converting constructors in CString are convenient. ... I did not actually write code like this; in fact I was pretty careful always to use the _T macro with any literal strings. ... But it does the conversion using the current 8-bit code page, which is not what I want. ...
    (microsoft.public.vc.mfc)
  • Re: Help please
    ... i would like to provide "CSimString" class code because the settings ... I agree with Tom that first step is project clean and rebuild all. ... with a Unicode string, ... Consider that VS2005 strings are Unicode by default, ...
    (microsoft.public.vc.mfc)