Im building an app on my laptop in Libre 6.4.4.2
i just curiously tried the below code ive often used in my Excel VBA Tools
this deals with creating recordsets not connected to a Database
Option VbaSupport 1
Sub vbax
Dim rstADO As ADODB.Recordset
Dim fld As ADODB.Field
Set rstADO = New ADODB.Recordset
With rstADO
.Fields.Append “ID”, adInteger, , adFldKeyColumn
.Fields.Append “FirstName”, adVarChar, 10, adFldMayBeNull
.Fields.Append “LastName”, adVarChar, 20, adFldMayBeNull
.Fields.Append “Email”, adVarChar, 64, adFldMayBeNull
.Fields.Append “Include”, adInteger, , adFldMayBeNull
.Fields.Append “Selected”, adBoolean, , adFldMayBeNull
.CursorType = adOpenKeyset
.CursorLocation = adUseClient
.LockType = adLockPessimistic
.Open
For r=1 To 10
rstADO.AddNew
rstADO("email").Value = r
rstADO.Update
Next r
rstADO.filter= "email='1'"
msgbox rstADO.recordcount
application.cursor= xlwait
End With
End Sub
this worked fine
Now the question
Is this anything to do with Excel already being installed on my Laptop or is it normal Libre working ?
I do not have any kind of Database system in my Laptop
The tool im building will be deployed on a client system that has only Libre same version installed and No Excel and No JRE
so just need to know if its safe to assume that the code will run the same way on that system too - or are there other factors involved
the above code is just an example
my actual code will later have several complex recordset manipulations
If you are not aware of how powerful this vba feature is and why I should use it etc. lets not worry about that but just let me know if these sort of vba codes can work on my Laptop then will they run on any other system having the same Libre version