Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to extract strings from a binary file with the following format
INT-STRING-INT_STRING-INT-STRING-.......... where the integer is the length of the string. I want to make a function that does what this failed attempt yearns... Public Function svString(ByVal FileNo As Integer, Cursor As Integer) As String Dim sze As Integer sze = 10 Get #FileNo, Cursor, sze ' Get string len Dim svString As String * sze Get #FileNo, Cursor + 4, svString ' Get string End Function The problem is declaring an array whith a variable (has to be constant) can anybody provide tips ? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bump ...
Any pointers would be really appreciated ... luis wrote in message ... I need to extract strings from a binary file with the following format INT-STRING-INT_STRING-INT-STRING-.......... where the integer is the length of the string. I want to make a function that does what this failed attempt yearns... Public Function svString(ByVal FileNo As Integer, Cursor As Integer) As String Dim sze As Integer sze = 10 Get #FileNo, Cursor, sze ' Get string len Dim svString As String * sze Get #FileNo, Cursor + 4, svString ' Get string End Function The problem is declaring an array whith a variable (has to be constant) can anybody provide tips ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using variable sized range in CountIf() | Excel Discussion (Misc queries) | |||
Variable sized combo box | Excel Programming | |||
Calculating Average on variable sized datasets w/VBA | Excel Programming | |||
Variable sized average macro/function | Excel Programming | |||
Summing a variable sized range programmatically | Excel Programming |