void SUB_IDENEWSF(qbs*_SUB_IDENEWSF_STRING_SF){
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 "data368.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
libqb_check_stack();
if (is_error_pending()) goto exit_subfunc;
S_57541:;
if ((*__LONG_IDESELECT)||is_error_pending()){
if(qbevent){evnt(28182,12449,"ide_methods.bas");if(r)goto S_57541;}
S_57542:;
if ((-(*__LONG_IDESELECTY1==*__LONG_IDECY))||is_error_pending()){
if(qbevent){evnt(28182,12450,"ide_methods.bas");if(r)goto S_57542;}
do{
qbs_set(_SUB_IDENEWSF_STRING_A,FUNC_IDEGETLINE(__LONG_IDECY));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,12451,"ide_methods.bas");}while(r);
do{
qbs_set(_SUB_IDENEWSF_STRING_A2,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,12452,"ide_methods.bas");}while(r);
do{
*_SUB_IDENEWSF_LONG_SX1=*__LONG_IDESELECTX1;
if(!qbevent)break;evnt(28182,12453,"ide_methods.bas");}while(r);
do{
*_SUB_IDENEWSF_LONG_SX2=*__LONG_IDECX;
if(!qbevent)break;evnt(28182,12453,"ide_methods.bas");}while(r);
S_57547:;
if ((-(*_SUB_IDENEWSF_LONG_SX2<*_SUB_IDENEWSF_LONG_SX1))||is_error_pending()){
if(qbevent){evnt(28182,12454,"ide_methods.bas");if(r)goto S_57547;}
do{
swap_32(&*_SUB_IDENEWSF_LONG_SX1,&*_SUB_IDENEWSF_LONG_SX2);
if(!qbevent)break;evnt(28182,12454,"ide_methods.bas");}while(r);
}
S_57550:;
fornext_value6806=*_SUB_IDENEWSF_LONG_SX1;
fornext_finalvalue6806=*_SUB_IDENEWSF_LONG_SX2- 1 ;
fornext_step6806= 1 ;
if (fornext_step6806<0) fornext_step_negative6806=1; else fornext_step_negative6806=0;
if (is_error_pending()) goto fornext_error6806;
goto fornext_entrylabel6806;
while(1){
fornext_value6806=fornext_step6806+(*_SUB_IDENEWSF_LONG_X);
fornext_entrylabel6806:
*_SUB_IDENEWSF_LONG_X=fornext_value6806;
if (fornext_step_negative6806){
if (fornext_value6806<fornext_finalvalue6806) break;
}else{
if (fornext_value6806>fornext_finalvalue6806) break;
}
fornext_error6806:;
if(qbevent){evnt(28182,12455,"ide_methods.bas");if(r)goto S_57550;}
S_57551:;
if ((qbs_cleanup(qbs_tmp_base,-(*_SUB_IDENEWSF_LONG_X<=_SUB_IDENEWSF_STRING_A->len)))||is_error_pending()){
if(qbevent){evnt(28182,12456,"ide_methods.bas");if(r)goto S_57551;}
do{
qbs_set(_SUB_IDENEWSF_STRING_A2,qbs_add(_SUB_IDENEWSF_STRING_A2,func_mid(_SUB_IDENEWSF_STRING_A,*_SUB_IDENEWSF_LONG_X, 1 ,0|1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,12456,"ide_methods.bas");}while(r);
}else{
do{
qbs_set(_SUB_IDENEWSF_STRING_A2,qbs_add(_SUB_IDENEWSF_STRING_A2,qbs_new_txt_len(" ",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,12456,"ide_methods.bas");}while(r);
}
fornext_continue_6805:;
}
fornext_exit_6805:;
}
}
do{
qbs_set(_SUB_IDENEWSF_STRING_NEWSF,FUNC_IDEINPUTBOX(qbs_add(qbs_new_txt_len("New ",4),_SUB_IDENEWSF_STRING_SF),qbs_new_txt_len("#Name",5),_SUB_IDENEWSF_STRING_A2,qbs_new_txt_len("",0),&(pass6808= 60 ),&(pass6809= 40 ),&(pass6810= 0 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,12461,"ide_methods.bas");}while(r);
S_57560:;
if ((qbs_cleanup(qbs_tmp_base,_SUB_IDENEWSF_STRING_NEWSF->len))||is_error_pending()){
if(qbevent){evnt(28182,12463,"ide_methods.bas");if(r)goto S_57560;}
do{
*_SUB_IDENEWSF_LONG_Y=*__LONG_IDEN;
if(!qbevent)break;evnt(28182,12464,"ide_methods.bas");}while(r);
do{
*_SUB_IDENEWSF_LONG_Y=*_SUB_IDENEWSF_LONG_Y+ 1 ;
if(!qbevent)break;evnt(28182,12465,"ide_methods.bas");}while(r);
do{
SUB_IDESETLINE(_SUB_IDENEWSF_LONG_Y,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,12465,"ide_methods.bas");}while(r);
do{
*_SUB_IDENEWSF_LONG_Y=*_SUB_IDENEWSF_LONG_Y+ 1 ;
if(!qbevent)break;evnt(28182,12466,"ide_methods.bas");}while(r);
do{
SUB_IDESETLINE(_SUB_IDENEWSF_LONG_Y,qbs_add(qbs_add(_SUB_IDENEWSF_STRING_SF,qbs_new_txt_len(" ",1)),_SUB_IDENEWSF_STRING_NEWSF));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,12466,"ide_methods.bas");}while(r);
do{
*__LONG_IDESY=*_SUB_IDENEWSF_LONG_Y;
if(!qbevent)break;evnt(28182,12467,"ide_methods.bas");}while(r);
do{
*_SUB_IDENEWSF_LONG_Y=*_SUB_IDENEWSF_LONG_Y+ 1 ;
if(!qbevent)break;evnt(28182,12468,"ide_methods.bas");}while(r);
do{
SUB_IDESETLINE(_SUB_IDENEWSF_LONG_Y,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,12468,"ide_methods.bas");}while(r);
do{
*__LONG_IDECY=*_SUB_IDENEWSF_LONG_Y;
if(!qbevent)break;evnt(28182,12469,"ide_methods.bas");}while(r);
do{
*_SUB_IDENEWSF_LONG_Y=*_SUB_IDENEWSF_LONG_Y+ 1 ;
if(!qbevent)break;evnt(28182,12470,"ide_methods.bas");}while(r);
do{
SUB_IDESETLINE(_SUB_IDENEWSF_LONG_Y,qbs_add(qbs_new_txt_len("END ",4),_SUB_IDENEWSF_STRING_SF));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,12470,"ide_methods.bas");}while(r);
do{
*__LONG_IDECX= 1 ;
if(!qbevent)break;evnt(28182,12471,"ide_methods.bas");}while(r);
do{
*__LONG_IDESX= 1 ;
if(!qbevent)break;evnt(28182,12471,"ide_methods.bas");}while(r);
do{
*__INTEGER_IDECHANGEMADE= 1 ;
if(!qbevent)break;evnt(28182,12472,"ide_methods.bas");}while(r);
do{
*__BYTE_STARTPAUSEDPENDING= 0 ;
if(!qbevent)break;evnt(28182,12473,"ide_methods.bas");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free368.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;
}
