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