This code works fine in Extra Basic, but I can't get it to compile in VB. I posted it here because I know some of you have had experience with both and I'm not sure what needs to change or if I'll have to start from scratch.
Function dlgFunc(identifier$, action, suppvalue)
dlgFunc = True...
I didn't expect this to work, but under certain condtions it seems to. When I set the datevalue to (Date()-2) or +20, which is next month, it works. The filedatetime is (06/07/2008 5:32:44 PM).
Sub main
CurrFile=DateValue(Date()-2) & " " & TimeValue(Time())
PrevFile=FileDateTime("h:\"...
Actually I got the If statement I posted to work. I had a bad length value in the getstring. And it's good to know there's an alternate method. Thanks Skip.
The code compiles, but the 'And' doesn't seem valid:
s_RtRcvdDt = trim(Sess.Screen.GetString( 10, 06, 15))
if IsDate(s_RtRcvdDt) then
i_DaysDiff = DateValue(Date()) - DateValue(s_RtRcvdDt)
End If
s_RtRcvdJb = trim(Sess.Screen.GetString( 10, 65, 71))
if...
My host is an IBM Mainframe and it works for me...
Sub Main
Dim Sys As Object,Sess As Object
Set Sys = CreateObject("EXTRA.System")
Set Sess = Sys.ActiveSession
Dim MyHost
MyHost=Sess.HostName
MsgBox MyHost
End Sub
I got it working for me and my host is an IBM Mainframe...
Sub Main
Dim Sys As Object,Sess As Object
Set Sys = CreateObject("EXTRA.System")
Set Sess = Sys.ActiveSession
Dim MyHost
MyHost=Sess.HostName
MsgBox MyHost
End Sub
'Cause I wanted to copy/paste the value from just the row containing "A VM001 - VM/SP", vzachin's code worked fine. Thanks Skip, I'll use it for something. [smile]
Instead of writing an If statement for every row, isn't there a better way of coding this:
Sub Main()
Dim Sys As Object,Sess As Object,xl as Object,wb as Object
Set Sys = CreateObject("EXTRA.System")
Set Sess = Sys.ActiveSession
Set xl = CreateObject("Excel.Application")
Set wb =...
Here's what I had, and it just quit working.
Sub Main()
Dim xl as Object,wb as Object
Set xl = CreateObject("Excel.Application")
set wb = xl.Workbooks.Open("c:\_excel ccmbalance.xls")
xl.visible = true
wb.SaveAs filename:=Format(Date, "mm.dd.yy") &...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.