Proof that anyone can do it RSS 2.0
 Friday, February 06, 2004

At my day job, I've been working to update an old quickbasic-centered data storage system to something a little more 21st century.  Along the way, of course, I've had to learn a great deal about QuickBasic and how it stores/retrieves values in text files. 

Our data solution uses fixed-length text records for storage.  One 'quirk' about that is that it also uses QuickBasic's CVI() and MKS() functions to store 16-bit Integers in a 2-character string (so any integer will still fit into our happy little fixed-length string). 

The problem is that Microsoft's .NET doesn't have any functions that resemble CVI(), MKS(), or a number of others that were found in QB (like MKD, CVD, MKI, MKL, CVL).  There are plenty of examples out there for VB6, but not .NET!

Anyway, I've searched pretty hard for a .NET version of CVI(), and finally found one that would work:

Here's the link to the original article, and I'll attach the code for download in case that article goes away some time in the future:

I hope this helps someone else with the same problem.

CV and MK Functions.txt (4.85 KB)
Friday, February 06, 2004 7:27:54 PM UTC  #    -
.NET | QuickBasic

I've been looking for a way to record (and hopefully later retrieve) some semi-random thoughts, so I thought I'd give this blogging stuff a try...I found dasBlog because Cory sent me a link. 

Friday, February 06, 2004 2:53:30 PM UTC  #    -

Archive
<February 2004>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
29123456
Quick Quips
    About the author/Disclaimer

    Disclaimer
    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

    © Copyright 2008
    John Bowen
    Sign In
    Statistics
    Total Posts: 152
    This Year: 3
    This Month: 0
    This Week: 0
    Comments: 164
    Themes
    Pick a theme:
    All Content © 2008, John Bowen
    Theme modified from the 'Business' theme created by Christoph De Baene (delarou)