qbs* FUNC_FORMATRANGE(qbs*_FUNC_FORMATRANGE_STRING___TEXT){
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 "data343.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;
do{
qbs_set(_FUNC_FORMATRANGE_STRING_TEMP,_FUNC_FORMATRANGE_STRING___TEXT);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,10542,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V1= -1 ;
if(!qbevent)break;evnt(28182,10543,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V2= -1 ;
if(!qbevent)break;evnt(28182,10544,"ide_methods.bas");}while(r);
S_55524:;
fornext_value6566= 1 ;
fornext_finalvalue6566=qb_safe_idiv(_FUNC_FORMATRANGE_STRING_TEMP->len, 4 );
fornext_step6566= 1 ;
if (fornext_step6566<0) fornext_step_negative6566=1; else fornext_step_negative6566=0;
if (is_error_pending()) goto fornext_error6566;
goto fornext_entrylabel6566;
while(1){
fornext_value6566=fornext_step6566+(*_FUNC_FORMATRANGE_LONG_I);
fornext_entrylabel6566:
*_FUNC_FORMATRANGE_LONG_I=fornext_value6566;
qbs_cleanup(qbs_tmp_base,0);
if (fornext_step_negative6566){
if (fornext_value6566<fornext_finalvalue6566) break;
}else{
if (fornext_value6566>fornext_finalvalue6566) break;
}
fornext_error6566:;
if(qbevent){evnt(28182,10545,"ide_methods.bas");if(r)goto S_55524;}
do{
*_FUNC_FORMATRANGE_LONG_V=string2l(func_mid(_FUNC_FORMATRANGE_STRING_TEMP,(*_FUNC_FORMATRANGE_LONG_I* 4 )-( 3 ), 4 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,10546,"ide_methods.bas");}while(r);
S_55526:;
if ((-(*_FUNC_FORMATRANGE_LONG_V1== -1 ))||is_error_pending()){
if(qbevent){evnt(28182,10547,"ide_methods.bas");if(r)goto S_55526;}
do{
*_FUNC_FORMATRANGE_LONG_V1=*_FUNC_FORMATRANGE_LONG_V;
if(!qbevent)break;evnt(28182,10548,"ide_methods.bas");}while(r);
}else{
S_55529:;
if (((-(*_FUNC_FORMATRANGE_LONG_V==(*_FUNC_FORMATRANGE_LONG_V1+ 1 )))|(-(*_FUNC_FORMATRANGE_LONG_V==(*_FUNC_FORMATRANGE_LONG_V2+ 1 ))))||is_error_pending()){
if(qbevent){evnt(28182,10550,"ide_methods.bas");if(r)goto S_55529;}
do{
*_FUNC_FORMATRANGE_LONG_V2=*_FUNC_FORMATRANGE_LONG_V;
if(!qbevent)break;evnt(28182,10551,"ide_methods.bas");}while(r);
}else{
S_55532:;
if ((-(*_FUNC_FORMATRANGE_LONG_V2== -1 ))||is_error_pending()){
if(qbevent){evnt(28182,10553,"ide_methods.bas");if(r)goto S_55532;}
do{
qbs_set(_FUNC_FORMATRANGE_STRING_A2,qbs_add(qbs_add(_FUNC_FORMATRANGE_STRING_A2,qbs__tostr((int32)(*_FUNC_FORMATRANGE_LONG_V1),NULL,0)),qbs_new_txt_len(";",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,10554,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V1=*_FUNC_FORMATRANGE_LONG_V;
if(!qbevent)break;evnt(28182,10555,"ide_methods.bas");}while(r);
}else{
do{
qbs_set(_FUNC_FORMATRANGE_STRING_A2,qbs_add(qbs_add(qbs_add(qbs_add(_FUNC_FORMATRANGE_STRING_A2,qbs__tostr((int32)(*_FUNC_FORMATRANGE_LONG_V1),NULL,0)),qbs_new_txt_len("-",1)),qbs__tostr((int32)(*_FUNC_FORMATRANGE_LONG_V2),NULL,0)),qbs_new_txt_len(";",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,10557,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V1=*_FUNC_FORMATRANGE_LONG_V;
if(!qbevent)break;evnt(28182,10558,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V2= -1 ;
if(!qbevent)break;evnt(28182,10559,"ide_methods.bas");}while(r);
}
}
}
fornext_continue_6565:;
}
fornext_exit_6565:;
S_55543:;
if (((-(*_FUNC_FORMATRANGE_LONG_V1!= -1 ))&(-(*_FUNC_FORMATRANGE_LONG_V2== -1 )))||is_error_pending()){
if(qbevent){evnt(28182,10564,"ide_methods.bas");if(r)goto S_55543;}
do{
qbs_set(_FUNC_FORMATRANGE_STRING_A2,qbs_add(_FUNC_FORMATRANGE_STRING_A2,qbs__tostr((int32)(*_FUNC_FORMATRANGE_LONG_V1),NULL,0)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,10564,"ide_methods.bas");}while(r);
}
S_55546:;
if (((-(*_FUNC_FORMATRANGE_LONG_V1!= -1 ))&(-(*_FUNC_FORMATRANGE_LONG_V2!= -1 )))||is_error_pending()){
if(qbevent){evnt(28182,10565,"ide_methods.bas");if(r)goto S_55546;}
do{
qbs_set(_FUNC_FORMATRANGE_STRING_A2,qbs_add(qbs_add(qbs_add(_FUNC_FORMATRANGE_STRING_A2,qbs__tostr((int32)(*_FUNC_FORMATRANGE_LONG_V1),NULL,0)),qbs_new_txt_len("-",1)),qbs__tostr((int32)(*_FUNC_FORMATRANGE_LONG_V2),NULL,0)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,10565,"ide_methods.bas");}while(r);
}
do{
qbs_set(_FUNC_FORMATRANGE_STRING_FORMATRANGE,_FUNC_FORMATRANGE_STRING_A2);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,10566,"ide_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free343.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;
qbs_maketmp(_FUNC_FORMATRANGE_STRING_FORMATRANGE);return _FUNC_FORMATRANGE_STRING_FORMATRANGE;
}
