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 "data280.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;
do{
qbs_set(_FUNC_FORMATRANGE_STRING_TEMP,_FUNC_FORMATRANGE_STRING___TEXT);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,10347,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V1= -1 ;
if(!qbevent)break;evnt(25769,10348,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V2= -1 ;
if(!qbevent)break;evnt(25769,10349,"ide_methods.bas");}while(r);
S_51202:;
fornext_value5914= 1 ;
fornext_finalvalue5914=_FUNC_FORMATRANGE_STRING_TEMP->len/  4 ;
fornext_step5914= 1 ;
if (fornext_step5914<0) fornext_step_negative5914=1; else fornext_step_negative5914=0;
if (is_error_pending()) goto fornext_error5914;
goto fornext_entrylabel5914;
while(1){
fornext_value5914=fornext_step5914+(*_FUNC_FORMATRANGE_LONG_I);
fornext_entrylabel5914:
*_FUNC_FORMATRANGE_LONG_I=fornext_value5914;
qbs_cleanup(qbs_tmp_base,0);
if (fornext_step_negative5914){
if (fornext_value5914<fornext_finalvalue5914) break;
}else{
if (fornext_value5914>fornext_finalvalue5914) break;
}
fornext_error5914:;
if(qbevent){evnt(25769,10350,"ide_methods.bas");if(r)goto S_51202;}
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(25769,10351,"ide_methods.bas");}while(r);
S_51204:;
if ((-(*_FUNC_FORMATRANGE_LONG_V1== -1 ))||is_error_pending()){
if(qbevent){evnt(25769,10352,"ide_methods.bas");if(r)goto S_51204;}
do{
*_FUNC_FORMATRANGE_LONG_V1=*_FUNC_FORMATRANGE_LONG_V;
if(!qbevent)break;evnt(25769,10353,"ide_methods.bas");}while(r);
}else{
S_51207:;
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(25769,10355,"ide_methods.bas");if(r)goto S_51207;}
do{
*_FUNC_FORMATRANGE_LONG_V2=*_FUNC_FORMATRANGE_LONG_V;
if(!qbevent)break;evnt(25769,10356,"ide_methods.bas");}while(r);
}else{
S_51210:;
if ((-(*_FUNC_FORMATRANGE_LONG_V2== -1 ))||is_error_pending()){
if(qbevent){evnt(25769,10358,"ide_methods.bas");if(r)goto S_51210;}
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(25769,10359,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V1=*_FUNC_FORMATRANGE_LONG_V;
if(!qbevent)break;evnt(25769,10360,"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(25769,10362,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V1=*_FUNC_FORMATRANGE_LONG_V;
if(!qbevent)break;evnt(25769,10363,"ide_methods.bas");}while(r);
do{
*_FUNC_FORMATRANGE_LONG_V2= -1 ;
if(!qbevent)break;evnt(25769,10364,"ide_methods.bas");}while(r);
}
}
}
fornext_continue_5913:;
}
fornext_exit_5913:;
S_51221:;
if (((-(*_FUNC_FORMATRANGE_LONG_V1!= -1 ))&(-(*_FUNC_FORMATRANGE_LONG_V2== -1 )))||is_error_pending()){
if(qbevent){evnt(25769,10369,"ide_methods.bas");if(r)goto S_51221;}
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(25769,10369,"ide_methods.bas");}while(r);
}
S_51224:;
if (((-(*_FUNC_FORMATRANGE_LONG_V1!= -1 ))&(-(*_FUNC_FORMATRANGE_LONG_V2!= -1 )))||is_error_pending()){
if(qbevent){evnt(25769,10370,"ide_methods.bas");if(r)goto S_51224;}
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(25769,10370,"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(25769,10371,"ide_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free280.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;
}
