home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 1099 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.6 KB  |  37 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!nntp.hut.fi!vipunen.hut.fi!mrinne
  3. From: mrinne@vipunen.hut.fi (Mikko J Rinne)
  4. Subject: DLL+VB SetProperty problem
  5. Message-ID: <mrinne.712513188@vipunen.hut.fi>
  6. Keywords: DLL, VB
  7. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  8. Nntp-Posting-Host: vipunen.hut.fi
  9. Organization: Helsinki University of Technology, Finland
  10. Date: 30 Jul 92 16:19:48 GMT
  11. Lines: 24
  12.  
  13. Anyone have any suggestions on doing 
  14.  
  15.     Text1.text = ""
  16.  
  17. from a DLL? I would've expected VBSetControlProperty to work like this, but
  18. it seems to append the new string to the existing value. And since I have
  19. dozens of field values to change, I really wouldn't like to clean the text
  20. boxes from Visual basic.
  21.  
  22. A couple of thoughts: I guess the VBSetHlstr function could be used to
  23. clear the string, if I had a pointer to the actual text property onscreen.
  24. The problem is, that the DLL currently only registers hctl pointers to the
  25. controls. I firmly believe that this should be enough, and I wouldn't like
  26. to add any extra pointers for doing this. I also thought of obtaining the
  27. string handle through the model structure, but according to the manual it
  28. isn't there. B'sides, that would be pretty complicated as well.
  29.  
  30. A simple thing, but I've already spent far too much time on it. There's
  31. got to be some small detail I've missed. Anyone care to help out?
  32. -- 
  33. Vous paysans, vous avez        I Mikko Rinne    Helsinki University
  34. des truffles a la place        I Ver{j{nkorva 3        of
  35. de cerveau!            I 00650 HELSINKI    Technology
  36.         -IL        I mrinne@niksula.cs.hut.fi
  37.