Why can't I just do this:

myStruct.myStr = "abcd"    ?

and then:

dim s as string = myStruct.myStr   ?


I know, I know, because no encodings are stored in structs, but why
can't RB just assume it's UTF8 (RB's default right?) unless stated
otherwise, eliminating the need for the very clunky:

myStruct.myStr = ConvertEncoding("abcd", Encodings.UTF8)

Or am I missing something?

BTW, it would be nice if the User's Manual actually showed us how to
assign a string to a struct element.

Best,
Peter.

--
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel:    (613)761-5444
fax:    (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to