Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Visual Dbase > dBase - Windows...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 53 of 130
Post > Topic >>

dBase - Windows API

by samuraikm <samuraikm@[EMAIL PROTECTED] > Jun 11, 2004 at 10:57 PM

Please help me with the following.  Directly below are the old dBase 5.x 
program lines, how do I convert these to utilize the Windows API 
instead?  


  if type("GetPrivateProfileString") <> "FP"
      extern CINT GetPrivateProfileString( CSTRING,;
                                           CSTRING,;
                                           CSTRING,;
                                           CPTR,;
                                           CINT,;
                                           CSTRING ) KRNL386.EXE
  endif

* And then the below procedure

  PROCEDURE GetValue
  parameter cSection, cEntry
  this.value = space(INI_RETSIZE)
  if type("cSection") == "C" .and. type("cEntry") == "C"
      this.Section = cSection
      this.Entry = cEntry
      GetPrivateprofileString(this.Section, this.Entry, this.Default,;
                              this.Value, INI_RETSIZE, this.IniFile)
      this.Value = trim(this.Value)
      if right(this.Value,1) = chr(0)
          this.Value = ltrim(left(" " + this.value, len(this.value)))
      endif
  endif
  RETURN trim(this.Value)



Thanks in advance!
 




 2 Posts in Topic:
dBase - Windows API
samuraikm <samuraikm@[  2004-06-11 22:57:05 
Re: dBase - Windows API
"Michael Nuwer"  2004-06-12 17:52:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Wed Jul 9 1:47:58 CDT 2008.