topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
ADO RDD xHarbour | Antonio,
I'm think the only low cost way to use ADO is through an RDD for it.
If I'm startint from scratch or I have the process in a kind of Tdata object then pure ADO its ok but I think the big majority of Harbour users have still lots of "old" code thus it is very costly to adapt it.
I'm not so aware how to write... |
ADO RDD xHarbour | Antonio,
lets do one thing. Go ahead and test it with some minor examples and I will help you from here.
If you get blocked, I will help you how to solve it and you will start understading it.
it is easier than it seems once you start working on it.
And again, this could help lots of users. So surely others will h... |
ADO RDD xHarbour | Antonio,
Agreed. I'm crossing my fingers.
First I'm trying to connect to traditional DBF files.
I have in Odbc UserDsn a VisualFoxpro driver.
The properties are:
"Microsoft FoxPro VFP Driver (*.dbf)"
"DSN=DBF trial"
"SourceDB="+folder with dbfs
... |
ADO RDD xHarbour | I'm using xHarbour 30.09.2008 and FW 8 and ado.prg from harbour 3.0.0.
I had to change in ado.prg win_OleCreateObject to CreateObject
I make a connection
.....
cStr := CFILEPATH(aOpenInfo[ UR_OI_NAME ])
cStr := SUBSTR(cStr,1,LEN(Cstr)-1)
aWAData[ WA_CONNECTION ]:Open( "Provider=Microsoft.Jet.OLEDB.4.0;Data... |
ADO RDD xHarbour | Forget my previous post I must use TOleAuto():New instead of CreateObject.
Now I get error :
1003 adordd 1: EG_ARG
Source : ADO_OPEN -> UR_SUPER_ADDFIELD( nWA, aField ) |
ADO RDD xHarbour | Antonio,
What ADORDD version are you using ?
Where have you downloaded it from ? |
ADO RDD xHarbour | Im using RDDADO.prg from harbour 3.0.
Im only linking adordd.prg ( no other rdd lib explicit linked) to the app. |
ADO RDD xHarbour | Please copy the source code of ADO_OPEN here, thanks |
ADO RDD xHarbour | Im connecting dbf - DbaseIV
[code=fw:323ea2lv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> ADO_OPEN<span style="color: #000000;">(</span> nWA, aOpenInfo <span style="color: #000000;">)</span><br /><br /> ... |
ADO RDD xHarbour | Hello,
If you post a full working sample and the source code of RDDADO.prg we can try to help!.
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
ADO RDD xHarbour | Antonio,
This is how it is done from Harbour\src\rdd\arrayrdd.prg
[code=fw:1konyn7q]<div class="fw" id="{CB}" style="font-family: monospace;"> aField := Array<span style="color: #000000;">(</span> UR_FI_SIZE <span style="color: #000000;">)</span><br /> aField<span style="color: #000000;">[</span... |
ADO RDD xHarbour | MsgInfo( ADO_GETFIELDTYPE( oRecordSet:Fields( n - 1 ):Type ) )
type char value returned 1
type date value returned 3
type numeric value returned 7
type logic value returned 2
[code=fw:lwkzinm0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">STATIC</span> <span style="color: #... |
ADO RDD xHarbour | Antonio,
Please replace this line in AdoRdd.prg:
aField[ UR_FI_TYPE ] := ADO_GETFIELDTYPE( oRecordSet:Fields( n - 1 ):Type )
with this:
[code=fw:13v9q6zl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />&n... |
ADO RDD xHarbour | Antonio,
Error:
genCode 14: EG_NOVAR
operação HB_FT_NUMERIC
If I change it to HB_FT_INTEGER then I get the same error:
genCode 1: EG_ARG
severity 2
subCode 1003
subSystem ADORDD
Chamado de UR_SUPER_ADDFIELD(0)
Chamado de ADO_OPEN(448) |
ADO RDD xHarbour | Antonio,
Please add this include at the top of AdoRdd.prg
#include "hbusrrdd.ch"
and replace HB_FT_NUMERIC with HB_FT_DOUBLE
if HB_FT_DOUBLE fails, try it with HB_FT_INTEGER |
ADO RDD xHarbour | Antonio,
#include "hbusrrdd.ch" was already there.
HB_FT_NUMERIC its not defined in hbusrrdd.ch
Passing the FOR clause in the first field I get:
name user type 1 len 30
its correct according to dbf file. user c 30
Calling UR_SUPER_ADDFIELD( nWA, aField )
I get the same error:
arguments none
description ... |
ADO RDD xHarbour | Antonio,
Could you send me a small ZIP renamed as ZOP with the PRG and DBF ? thanks |
ADO RDD xHarbour | Antonio,
Sent to your email. |
ADO RDD xHarbour | Antonio,
I have not received it yet.
Please remember to rename ZIPs as ZOPs or gmail will block them |
ADO RDD xHarbour | Sento as zop to <!-- e --><a href="mailto:'alinares@fivetechsoft.com">'alinares@fivetechsoft.com</a><!-- e -->' |
ADO RDD xHarbour | Antonio,
Did you received my email? |
ADO RDD xHarbour | Antonio,
Where can I find FWAdoFieldSize() and FWAdoFieldDec( ) ? |
ADO RDD xHarbour | Antonio,
I have not received your email
Please rename the attached files as *.zop or gmail will delete them |
ADO RDD xHarbour | [quote="AHF":28wvb5kz]Antonio,
Where can I find FWAdoFieldSize() and FWAdoFieldDec( ) ?[/quote:28wvb5kz]
Those functions and much more are in FWH\source\function\adfuncs.prg |
ADO RDD xHarbour | Antonio,
Im working with FWH October 2008 and xHarbour Sept 2008 and I dont have such functions.
Email resent |
ADO RDD xHarbour | Antonio,
It seems as you are not using the most recent adordd.prg.
Please try it with this one:
[url:45huubk2]https://github.com/harbour/core/tree/master/extras/rddado[/url:45huubk2] |
ADO RDD xHarbour | Antonio,
Continue to get error UR_SUPER_ADDFIELD(0) EG_ARG 1003 SUBSSYSTEM ADORDD
May be I have a wrong version of UR_SUPER_ADDFIELD
What are the expected parameters of this function?
Also the THREAD STATIC does not compile I have to take THREAD out.
I dont have function hb_ntos, hb_stod
Without "common.ch" HB_S... |
ADO RDD xHarbour | In [url:2qp9l10u]https://github.com/harbour/core/blob/master/src/rdd/usrrdd/rdds/arrayrdd.prg[/url:2qp9l10u] UR_SUPER_ADDFIELD() is used this way:
[code=fw:2qp9l10u]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">FOR</span> EACH aFieldStruct IN aStruct<br /> ... |
ADO RDD xHarbour | [quote:h4q42lrm]I dont have function hb_ntos, hb_stod[/quote:h4q42lrm]
Those functions are from harbour standard libraries.
How do you get this error ? |
ADO RDD xHarbour | Antonio,
Im working with FWH October 2008 and xHarbour Sept 2008 .
Is this the reason? |
ADO RDD xHarbour | Antonio,
As far as I understand I must send in aField[ UR_FI_TYPE ] with clipper standard field types C N L...
But I still get te same error |
ADO RDD xHarbour | Please post here the code that you are using when you fill aField and call the function |
ADO RDD xHarbour | Here it is
[code]FOR n := 1 TO nTotalFields
aField := Array( UR_FI_SIZE )
aField[ UR_FI_NAME ] := oRecordSet:Fields( n - 1 ):Name
ADO_FIELDINFO( nWA, n, DBS_TYPE, @uInfo )
aField[ UR_FI_TYPE ] := uInfo
aField[ UR_FI_TYPEEXT ] := 0
ADO_FIELDINFO( nWA, n, DBS_LEN, @uInfo )
aField[ UR_... |
ADO RDD xHarbour | [code=fw:3kzvoxy9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nTotalFields<br />aField := Array<span style="color: #000000;">(</span> UR_FI_SIZE <span style="color: #00000... |
ADO RDD xHarbour | Hello Antonio,
If you post a full working sample it would be easier to look into the problem.
I tested ADORDD in the past and it worked nice, but indexes were not supported. Are thet now?. |
ADO RDD xHarbour | Hello Lucas,
Im using the rddado.prg and .ch posted by Antonio in previous post.
I've proceed with the changes posted after because I always get an error .
I'm trying to work first with dbf files like this.
RddRegister("ADORDD",1)
RddSetDefault("ADORDD")
sele 0
use "whatever" shared
Browse()
I dont know if inde... |
ADO RDD xHarbour | Antonio,
All that we can do here is to double check that we have properly filled aField before calling that function.
I doubt there is an error like this in the Harbour RDD engine, so I guess we are suplying wrong values to aField
If everything is ok, we may need to low level trace the RDD code to find the exact val... |
ADO RDD xHarbour | Antonio,
I checked with msginfo() and the values in aField passed to UR_SUPER_ADDFIELD( nWA, aField ) are:
nWa = workarea number
aField[ UR_FI_NAME ] := "name of field"
aField[ UR_FI_TYPE ] := one of "C","L","D","N","M"
aField[ UR_FI_TYPEEXT ] := 0
aField[ UR_FI_LEN ] := length of the field as number
aFiel... |
ADO RDD xHarbour | Have you compared it with the way it is called from ?
[url:1am2q2oo]https://github.com/harbour/core/blob/master/src/rdd/usrrdd/rdds/arrayrdd.prg[/url:1am2q2oo] |
ADO RDD xHarbour | Antonio,
Yes and I checked with :
msginfo(str(HB_Decode( aField[ DBS_TYPE ], "C", HB_FT_STRING, "L", HB_FT_LOGICAL, "M", HB_FT_MEMO, "D", HB_FT_DATE, "N", IIF( aField[ DBS_DEC ] > 0, HB_FT_DOUBLE, HB_FT_INTEGER ) )))
It returns HB_FT_STRING for "C" for example.
All other elements are straight foward.
The error 10... |
ADO RDD xHarbour | Antonio,
I guess you have to supply HB_FT_STRING instead of "C" |
ADO RDD xHarbour | Antonio,
Tried it again. Same error. |
ADO RDD xHarbour | Lets review Harbour's usrrdd.c code:
[code=fw:2qpxqj5d]<div class="fw" id="{CB}" style="font-family: monospace;">HB_FUNC_UR_SUPER<span style="color: #000000;">(</span> ADDFIELD <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> AREAP pArea = hb_usrGetAreaP... |
ADO RDD xHarbour | [url:3ugpccpb]https://github.com/harbour/core/blob/master/src/rdd/usrrdd/usrrdd.c[/url:3ugpccpb] |
ADO RDD xHarbour | Antonio,
Passed array its corrected.This is the print out:
aField[ UR_FI_NAME ] = NRENCOMEND
aField[ UR_FI_TYPE ] = 1
aField[ UR_FI_TYPEEXT ] = 0
aField[ UR_FI_LEN ] = 10
aField[ UR_FI_DEC ] = 0
It seems the error its not here. |
ADO RDD xHarbour | Antonio,
adordd is working with copy to and copy struct when the table source is opened with via adordd.
Thus it goes directly to ado_trans and we have the control to do it either to another table via adordd or to other rdd.
The problem is when the source table is for ex. dbfcdx then _dbcopy executes and calls ado_ap... |
ADO RDD xHarbour | Antonio,
What harbour version are you using ? |
ADO RDD xHarbour | [quote="AHF":2t8c3q9j]Antonio,
Im working with FWH October 2008 and xHarbour Sept 2008 .
Is this the reason?[/quote:2t8c3q9j] |
ADO RDD xHarbour | Antonio,
I checked usrrdd.c from xHarbour and it expects aField[ UR_FI_FLAGS ] aField[ UR_FI_STEP ] that I now send := 0.
Its ok now <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Will keep you posted |
ADO RDD xHarbour | I save a password with functions FwEncrypt and Fwdecrypt but the charater returned doesnt correspond to what is in that field.
I think this has something to do with charset
Any solutions? |
ADO RDD xHarbour | Antono,
There is a problem with the field:type.
When its dbf field "N" with 0 decimals it returns a double with 2 decimal places.
How can we make this conversion when uploading dbfs as tables for ex to mysql or working with dbfs directly ? |
ADO RDD xHarbour | [quote="AHF":3lfcbnos]Antonio,
I checked usrrdd.c from xHarbour and it expects aField[ UR_FI_FLAGS ] aField[ UR_FI_STEP ] that I now send := 0.
Its ok now <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Will keep you posted[/quote:3lfcbnos]
Very good! <!-- s:-) ... |
ADO RDD xHarbour | [quote="AHF":3ss85ue0]Antono,
There is a problem with the field:type.
When its dbf field "N" with 0 decimals it returns a double with 2 decimal places.
How can we make this conversion when uploading dbfs as tables for ex to mysql or working with dbfs directly ?[/quote:3ss85ue0]
Lets ask Mr. Rao about this as he is a ... |
ADO RDD xHarbour | [quote="AHF":3p8vi1tm]I save a password with functions FwEncrypt and Fwdecrypt but the charater returned doesnt correspond to what is in that field.
I think this has something to do with charset
Any solutions?[/quote:3p8vi1tm]
Try to use Harbour encrypt/decrypt functions to see if that solves the problem.
I don't r... |
ADO RDD xHarbour | Antonio,
The application crashes without any error in the following condition:
ACTIVATE WINDOW … ON INIT initial() …
Function Initial()
Use dbf
Do while !eof()
…..
Dbskip()
Enddo
If the same function is called out of ON INIT clause its ok.
If I call browse() before the Do While in any condi... |
ADO RDD xHarbour | [quote="Antonio Linares":20b7ey5b][quote="AHF":20b7ey5b]I save a password with functions FwEncrypt and Fwdecrypt but the charater returned doesnt correspond to what is in that field.
I think this has something to do with charset
Any solutions?[/quote:20b7ey5b]
Try to use Harbour encrypt/decrypt functions to see if t... |
ADO RDD xHarbour | Antonio,
Can you test this and confirm it?
[quote="AHF":35jcxuv4]Antonio,
The application crashes without any error in the following condition:
ACTIVATE WINDOW … ON INIT initial() …
Function Initial()
Use dbf
Do while !eof()
…..
Dbskip()
Enddo
If the same function is called out of ON INIT ... |
ADO RDD xHarbour | Antonio,
Are you showing some data from the window ?
try not to paint any data from the database on the window, so the RDD is only used once
Later on we will find a way to solve it, |
ADO RDD xHarbour | Antonio,
I'm showing on a modal dialog with an array with several elements extracted from that table.
The error does not occours in the modal dialog but when I close the table just after the do while and before the moda dialog.
It seems crash occurs in ADO_CLOSE line with RETURN UR_SUPER_CLOSE( nWA ) |
ADO RDD xHarbour | Is it a GPF ?
Do you get any log file ? |
ADO RDD xHarbour | Antonio,
Sorry I forgot to send it.
Assinatura do problema:
Nome do Evento de Problema: APPCRASH
Nome da aplicação: fllup.exe
Versão da aplicação: 10.0.0.0
Carimbo de Data/Hora da Aplicação: 5507d7fe
Nome do Módulo com Falhas: OLEAUT32.dll
Versão do Módulo com Falhas: 6.1.7601.17676
Carimbo de Data/Hora... |
ADO RDD xHarbour | Antonio,
Please copy ADO_CLOSE source code here, thanks |
ADO RDD xHarbour | Antonio,
Here it is.
[code=fw:1nhgmzvr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> ADO_CLOSE<span style="color: #000000;">(</span> nWA <span style="color: #000000;">)</span><br /><br /> <span st... |
ADO RDD xHarbour | Antonio,
We just found out that previous GPF occours with:
oRecorset:Open("SELECT * FROM "+ cTableName.... GPFs in any condition
oRecorset:Open(cTableName .....GPFs if oRecordSet:CursorLocation := adUseClient
Its ok if oRecordSet:CursorLocation := adUseServer
Any ideas why? |
ADO RDD xHarbour | Antonio,
No idea why, but its great that you found a workaround so you can continue testing and working on it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
ADO RDD xHarbour | Antonio,
There are some issues that we must workaround in order to have full compatibility between ADO and normal RDD with no changes in the code if at all possible.
These are the issues:
1) INDEX – In SQL these should be independent of the code itself. The programmer should only think about
the data he nee... |
ADO RDD xHarbour | Antonio,
Check the functions for each task that you mention. There you will see where the indexes, etc. are placed:
i.e. in ADO_ORDCREATE()
[code=fw:cjrwsj4q]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">IF</span> aWAData<span style="color: #000000;">[... |
ADO RDD xHarbour | Antonio,
I need to alter function IndexKey() to work also with adordd.
How can I do it ? |
ADO RDD xHarbour | Antonio,
IndexKey() se traduce en una llamada a OrdKey() y OrdKey() llama a ADO_ORDINFO()
[url:234cfxg4]https://github.com/harbour/core/blob/master/extras/rddado/adordd.prg[/url:234cfxg4] |
ADO RDD xHarbour | Antonio,
At ADO_ORDLSTADD how can I save the all open index info to workarea array to be used in ADO_ORDINFO? |
ADO RDD xHarbour | Antonio,
Change this:
#define WA_RECORDSET 1
#define WA_BOF 2
#define WA_EOF 3
#define WA_CONNECTION 4
#define WA_CATALOG 5
#define WA_TABLENAME 6
#define WA_ENGINE 7
#define WA_SERVER 8
#define WA_USERNAME 9
#define WA_PASSWORD 10
#define WA_QUERY 11
#define WA_LOCATEFOR ... |
ADO RDD xHarbour | Antonio,
The aOrderInfo[ UR_ORI_TAG ] can be Numeric or String.
Is this behavior correct? |
ADO RDD xHarbour | Antonio,
What func calls the ADO_ORDDESTROY ? |
ADO RDD xHarbour | Antonio,
Place an error in ADO_ORDDESTROY() and you will see the calls stack list
in example, write:
x++
it will error and you will see what function calls it |
ADO RDD xHarbour | Antonio,
Where is information about the controling index in ADO RDD ? |
ADO RDD xHarbour | The controlling index is set in the ADO recordset:
oRecordSet:Index := aOrderInfo[ UR_ORI_BAG ] |
ADO RDD xHarbour | Antonio,
I needed an VAR to save the controling index.
All indexes are "virtual" they really dont exist as files in ADORDD.
The indexes are SELECTs
Its solved. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Now I need to know RDD function to DBRLOCKLIST()
What is... |
ADO RDD xHarbour | Antonio,
Very good, you are progressing <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
have a look at this:
[url:2j0oyblq]http://www.ousob.com/ng/53tecref/ng42f2a.php[/url:2j0oyblq] |
ADO RDD xHarbour | Antonio,
Ok got it!
How can I have DBRLOCKLIST() to work? |
ADO RDD xHarbour | Antonio,
See how it is implemented in Harbour:
[code=fw:18xx2qsy]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> DBRLOCKLIST <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /... |
ADO RDD xHarbour | Antonio,
Sorry didnt catch it.
I'm not familiar with harbour C ext.
Where can I keep the locklist array updated in adordd everytime ADO_LOCK and ADO_UNLOCK are called?
Locks dont really exist in the files its only for record position information. |
ADO RDD xHarbour | Antonio,
In that C code an array is created and filled with an array (DBI_GETLOCKARRAY)
The question here is: Does it have sense to talk about this in ADO ? Do we just return an empty array ?
Are we going to need those locks positions ? I guess no |
ADO RDD xHarbour | Antonio,
Its absolutly necessary to keep the locklist array.
In transactions we lock and append all necessary records and then we loop trough the locklist with dbgoto to make all replaces. If a lock fails the transaction fails.
Altough with ADO never fails as real locks dont matter we still need to have it filled w... |
ADO RDD xHarbour | Antonio,
ok, you can save them using bookmarks, yes |
ADO RDD xHarbour | Antonio,
I need your support here because I still dont know how to do it. |
ADO RDD xHarbour | Antonio,
Please post your most recent adordd.prg file and I review it, thanks |
ADO RDD xHarbour | Antonio,
Sent to your email. |
ADO RDD xHarbour | Antonio,
Your code looks fine. What is missing ?
If you don't mind I am going to share your version so other users may try it too, thanks
[url:1z91ljii]https://bitbucket.org/fivetech/fivewin-contributions/downloads/adordd.prg[/url:1z91ljii] |
ADO RDD xHarbour | Antonio,
Dbrocklist() returns zero |
ADO RDD xHarbour | Antonio,
Please place a MsgInfo() in function ADO_ORDINFO() and check if it is shown when you call to Dbrlocklist() |
ADO RDD xHarbour | Antonio,
I did that already.
Dbrlocklist doesnt call ado_ordinfo. |
ADO RDD xHarbour | Antonio,
Dbrlocklist is a area/table related information and not index.
I think drblocklist is calling dbinfo with the corresponding #define.
When we open a recorset we load to UR_SUPER_OPEN( nWA, aOpenInfo ) all openinfo.
Can we do something of the kind with locks and unlocks to keep locklist always updated? |
ADO RDD xHarbour | Antonio,
Yes, you are right, it is DbInfo()
What we are not going to lock any records, so what do you need that for ? |
ADO RDD xHarbour | [quote="AHF":1st6raph]Antonio,
Its absolutly necessary to keep the locklist array.
In transactions we lock and append all necessary records and then we loop trough the locklist with dbgoto to make all replaces. If a lock fails the transaction fails.
Altough with ADO never fails as real locks dont matter we still ne... |
ADO RDD xHarbour | Antonio,
So the array that you have to return is aWdata[ WA_LOCKLIST ] |
ADO RDD xHarbour | Antonio,
Yes thats the array I created for that porpose and its already updated by ado_lock and ado_unlock. |
ADO RDD xHarbour | Can't you return it from DbInfo() ? |
ADO RDD xHarbour | Antonio,
No. The problem is that I must pass somewhere the locklist array that I build but dont know where and how.
I dont have any other rdd.prg source to check it out. |
ADO RDD xHarbour | See the source code for dbinfo():
[code=fw:3ihvhqz9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> DBINFO <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> AREAP... |
ADO RDD xHarbour | Antonio,
I dont understand it.
As I said before I dont know nothing about rdd specs and the way of working.
I define #define WA_LOCKLIST 22
Cant we do with dbrlocklist something like
aADOFunc[ UR_LOCK ] := (@ADO_LOCK())
Then I would have acess to my locklist array. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.