Re: EDB Question

new topic     » goto parent     » topic index » view thread      » older message » newer message
tbohon said...

Trying to count and display number of records in a simple EDB file. Pretty sure I have the logic correct below but when it prints it shows a graphics character rather than a number so I'm missing something ... and it's driving me nuts!

Any help you can provide is most appreciated.

	puts(f, "\n\nRecord count:  " & rcount & "\n\n") 

Change that one line to this:

	printf(f, "\n\nRecord count:  %d\n\n", rcount) 

There are other solutions as well, like

	puts(f, "\n\nRecord count:  " & sprint(rcount) & "\n\n") 

Or using the writef method.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu