TheWizardofInt Posted November 6, 2003 Posted November 6, 2003 Normally I would use Dim s as String s = String$(100,0) To create a 100 character buffer to retrieve data to, when the data had to be moved to a buffer. Does anyone know the equivalent now? Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
Administrators PlausiblyDamp Posted November 6, 2003 Administrators Posted November 6, 2003 Where is the data commiing from? Is it formatted as a string or just raw bytes? If the latter: dim b(100) as byte would probably be enough. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
TheWizardofInt Posted November 6, 2003 Author Posted November 6, 2003 It is a string I will try it - thanks so much! Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
*Gurus* Derek Stone Posted November 6, 2003 *Gurus* Posted November 6, 2003 There's a high probability you should be using a StringBuilder instead. Imports System.Text Dim builder As StringBuilder = New StringBuilder(100) Quote Posting Guidelines
TheWizardofInt Posted November 6, 2003 Author Posted November 6, 2003 Actually, it was this Dim sBuf1 As String sBuf1 = New String(Chr(0), 100) Thanks for the help, tho Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.