Project: TimescaledData Method May Return Invalid Data |
Q121365
kbprbIn Microsoft Project, the Visual Basic, Applications Edition, TimescaledData method may return strings with unreadable characters.
Microsoft has confirmed this to be a problem in the Microsoft products that are listed at the beginning of this article.
The TimescaledData method returns a list of work or cost for a task and resource over intervals in a period of time. Normally, the method returns a text string that resembles the following:
5h,2h,6h,2h,2hAt times, however, the method returns strings that contain unreadable characters such as hearts and happy faces.
Dim i As Integer
Dim Returned_String as String
Sub BadSting()
For i = 1 To 10000
Returned_String = TimescaledData(1, 1, ActiveProject.Start, _
ActiveProject.Finish, pjWork, pjTimescaleDays)
Debug.Print Returned_String
Test_String
Next i
End Sub
Function Test_String() As Integer
Dim h_pos, start_pos, s_length As Integer
Const SearchChar = "H"
start_pos = 1
h_pos = InStr(start_pos, Returned_String, SearchChar, 1)
If h_pos > 0 Then
If Not IsNumeric(Left(Returned_String, h_pos - 1)) Then
MsgBox "Bad data on loop " & i & "."
Stop
End If
End If
End Function Additional query words: smiley happyface dingbats ding bats
Keywords :
Issue type : kbbug
Technology : kbHWMAC kbOSMAC kbProjectSearch kbProject400Mac kbProjectMacSearch kbProject400
|
Last Reviewed: November 5, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |