Mega Code Archive

 
Categories / Delphi / Examples
 

Vbtypes

Subject: Re: DELPHI TBasicString type mstein@indy.net (Marc Stein) wrote: > > This is probably painfully obvious but... > > When I use a type 1 vbx under Delphi the control loads properly and > functions, but return values which are strings in VB are typed as > TBasicString in Delphi. I can't do anything with these values as is, i.e. > they can't be passed to an Edit, Memo, or Label control as a Text value, > and I have not been able to convert them to String via the AsString > method. What am I doing wrong here? How can these values be coerced to a > string which Delphi can manipulate? Any help greatly appreciated. There are some functions which manipulate and convert TBasicStrings located in the VBXCTRL unit. Check out the functions at the bottom of the \DELPHI\DOC\VBXCTRL.INT file such as BStrPas() and BStrPCopy(). -Steve Teixeira steixeir@borland.com