June 18, 2024, 10:31:26 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


converting from VB

Started by steffen, February 10, 2009, 07:45:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

steffen

I need to convert the following code from VB to Cbasic.  The Function, FTgetJulian() retrieves a date and a corresponding price from a stock price database.  I don't expect someone to complete this for me I just need some direction.  Thanks.

For i = start To maxnumdays
        If (i - 1) Mod 25 = 0 Then
            DoEvents
            Demo.Cls
            Demo.Print "Index  Date                        Price"
            Demo.Print "========================================"
            End If
        julian = FTgetJulian(i)
        Demo.Print Format$(i, "@@@@@  ") & _
            Format$(julian, "mmm dd, yyyy  (") & _
            Format$(julian) & _
            Format$(Format$(prices(i), "0.00"), ")  @@@@@@@@@@")
        Next

Egil

A quick search on the forum give this URL: http://www.ionicwind.com/forums/index.php/topic,2529.0.html
The ruoutines discussed there are for EmergenceBasic, but I don't think you should have any difficulties converting the Julian Date subroutines into Creative Basic code.

Good luck!
Support Amateur Radio  -  Have a ham  for dinner!