void SUB_INSERTATCURSOR(qbs*_SUB_INSERTATCURSOR_STRING_TEMPK){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data366.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (is_error_pending()) goto exit_subfunc;
S_60936:;
if ((*__LONG_IDESELECT)||is_error_pending()){
if(qbevent){evnt(24235,20550,"ide_methods.bas");if(r)goto S_60936;}
do{
SUB_DELSELECT();
if(!qbevent)break;evnt(24235,20550,"ide_methods.bas");}while(r);
}
do{
qbs_set(_SUB_INSERTATCURSOR_STRING_A,FUNC_IDEGETLINE(__LONG_IDECY));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,20551,"ide_methods.bas");}while(r);
S_60940:;
if ((qbs_cleanup(qbs_tmp_base,-((_SUB_INSERTATCURSOR_STRING_A->len)<(*__LONG_IDECX- 1 ))))||is_error_pending()){
if(qbevent){evnt(24235,20552,"ide_methods.bas");if(r)goto S_60940;}
do{
qbs_set(_SUB_INSERTATCURSOR_STRING_A,qbs_add(_SUB_INSERTATCURSOR_STRING_A,func_space(*__LONG_IDECX- 1 -_SUB_INSERTATCURSOR_STRING_A->len)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,20552,"ide_methods.bas");}while(r);
}
do{
qbs_set(_SUB_INSERTATCURSOR_STRING_A,qbs_add(qbs_add(qbs_left(_SUB_INSERTATCURSOR_STRING_A,*__LONG_IDECX- 1 ),_SUB_INSERTATCURSOR_STRING_TEMPK),qbs_right(_SUB_INSERTATCURSOR_STRING_A,_SUB_INSERTATCURSOR_STRING_A->len-*__LONG_IDECX+ 1 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,20553,"ide_methods.bas");}while(r);
do{
SUB_IDESETLINE(__LONG_IDECY,FUNC_CONVERTTABS(_SUB_INSERTATCURSOR_STRING_A));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,20554,"ide_methods.bas");}while(r);
S_60945:;
if ((*__BYTE_PASTECURSORATEND)||is_error_pending()){
if(qbevent){evnt(24235,20556,"ide_methods.bas");if(r)goto S_60945;}
do{
*__LONG_IDECX=*__LONG_IDECX+_SUB_INSERTATCURSOR_STRING_TEMPK->len;
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,20558,"ide_methods.bas");}while(r);
}
do{
*__INTEGER_IDECHANGEMADE= 1 ;
if(!qbevent)break;evnt(24235,20561,"ide_methods.bas");}while(r);
do{
*__BYTE_STARTPAUSEDPENDING= 0 ;
if(!qbevent)break;evnt(24235,20562,"ide_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free366.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
}
